Ad Widget

Collapse

Problem with vfs.file.regmatch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Umair
    Member
    • Feb 2007
    • 86

    #1

    Problem with vfs.file.regmatch

    Hello,
    I have been trying to check if a specific String exists in a File using the vfs.file.regmatch function.

    This is how the key of ITEM looks:
    vfs.file.regmatch[/etc/zabbix/text,java]

    with "java" being the Regular expression.
    This function is supposed to return 0 or 1, but does not do any thing.
    Even the logs are empty.

    I tried changing the fucntion to vfs.file.exists, but the same result.
    Any ideas?

    P.S. The user 'zabbix' has read write access to this folder.
  • Umair
    Member
    • Feb 2007
    • 86

    #2
    Okey, i managed to make it work.
    The only problem i was having was, that i had set the Agent Type to Agent (Active).
    By the way, what really is the difference betweent the two ?

    Comment

    Working...