Ad Widget

Collapse

triggering a directory change

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • new2zabbix2
    Junior Member
    • Nov 2025
    • 2

    #1

    triggering a directory change

    hi,
    I am new here.
    using zabbix ver 7.0.21.
    I am trying to get trigger is a directory on a windows server host (2019 with agent 7.0X) has not been changed for the last 5 min.
    (usually this directory is very active so if files stops coming I need to know)
    I created a trigger like this:

    change(/Server1/vfs.file.time["D:\LIB",modify])>5

    but the behavior is not as expected.

    can any one point me where am I wrong and what should be the correct syntax?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I am not sure, does windows even has such value for a directory, as you need (as you have in linux)... The value, what you get is actually directory creation time, not modifying time (and probably does not change at all)...

    and expecting a "change()>5" to mean more than 5 minutes is also wrong... time is measured in seconds, not minutes...

    Comment

    • new2zabbix2
      Junior Member
      • Nov 2025
      • 2

      #3
      hi,
      thanks for your response.
      there is defiantly creation date and modify date.

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #4
        This works for me:

        now()-last(/servername/vfs.file.time[E:\foldername])>1209600

        and fires when foldername hasn't had a new file created in it for 2 weeks.

        Comment

        Working...