Ad Widget

Collapse

Trigger to monitor file creation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neil3k
    Junior Member
    • Jan 2016
    • 2

    #1

    Trigger to monitor file creation

    Say I want to monitor any file creation within a specific directory?

    The file will be a random string of characters followed by .txt

    I've tried to use vfs.file.exists[DIR\*.txt]

    But this just triggers all the time even if the directory has no .txt files in it

    thanks,
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    First, vfs.file.exists[*] is an item key and cannot trigger anything by itself.

    Second, the parameter of that item key expects "full path to file" and does not support the usage of regular expressions.
    See: https://www.zabbix.com/documentation...s/zabbix_agent

    Since the agent does not support regular expressions for that item key parameter, you can think of:

    Comment

    Working...