Ad Widget

Collapse

Trigger based on key - vfs.file.time

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ondřej Podroužek
    Junior Member
    • Jul 2022
    • 5

    #1

    Trigger based on key - vfs.file.time

    Hello everyone,

    I was not able to find any topic simillar to this issue, so I created a new one, since Im looking for a help.

    I want to create a trigger based on vfs.file.time key, specifically - modify.

    Lets say I monitor file for modify unixtime ( vfs.file.time[C:\temp\zabbix.txt,modify] ) and I want to create a trigger based on that.

    Trigger should generate incident if the unixtime is older than 1 day / 24 hours or so, but none of the functions were working for me, maybe I did something wrong ?

    fuzzytime(/CFSHE/vfs.file.time[C:\temp\zabbix.txt,modify,modify],60)=1d

    Can anyone please help me or suggest the right solution ?

    thank you !
  • Answer selected by Ondřej Podroužek at 22-07-2022, 10:41.
    vladimir_lv
    Senior Member
    • May 2022
    • 240

    Hi
    fuzzytime doesn't help you, because this item return 0 or 1.
    Try this one:
    Code:
    (now()-last(/YOUR_HOST/vfs.file.time[C:\temp\zabbix.txt,modify],#1:now))
    >86400

    Comment

    • vladimir_lv
      Senior Member
      • May 2022
      • 240

      #2
      Hi
      fuzzytime doesn't help you, because this item return 0 or 1.
      Try this one:
      Code:
      (now()-last(/YOUR_HOST/vfs.file.time[C:\temp\zabbix.txt,modify],#1:now))
      >86400

      Comment

      • Ondřej Podroužek
        Junior Member
        • Jul 2022
        • 5

        #3
        Hi Vladimir_lv

        thank you for your suggestion, that works like a charm !

        have a nice weekend

        Comment

        Working...