Ad Widget

Collapse

Monitoring folder count trigger over set time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iancomline
    Junior Member
    • Apr 2023
    • 1

    #1

    Monitoring folder count trigger over set time

    Hi,

    Zabbix Version: 6.0.14

    I have configured the following to get the number of files in the folder:

    Code:
    vfs.dir.count["C:\Users\administrator\OneDrive - Comline\Files",.xml,,,,0,,,,,]
    This works fine and give the number every 15mins.

    What i would like the trigger to do is the following:

    Informational: When the folder doesn't contain any files in the last 15 mins trigger.
    Warning : When the folder doesn't contain any files in the last 1 hour trigger
    Average : When the folder doesn't contain any files in the last 1 hour and 30 mins trigger
    High : When the folder doesn't contain any files in the last 2 hour trigger

    I have the below code set as a trigger for testing but i don't think it is correct.

    Code:
    last(/Spain Server/vfs.dir.count["C:\Users\administrator\OneDrive - Comline\Files",.xml,,,,0,,,,,])=0
    It the trigger i can't get to work correctly any help would be greatly appreciated.

    Thanks

    Ian
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    last() looks for the last value. So this probably works, but will react only to last incoming value... So if you check in 15m intervals, it might be OK. For longer periods you need a function, that would consider all the values during period. Like max() or min(). "max(/host/item,1h)<1" This will fire when all values within 1h are below 1... and resolve right when any other number than 0 arrives..

    Comment

    Working...