Ad Widget

Collapse

Trigger based on key - vfs.file.time

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • arnomomo
    Junior Member
    • Feb 2023
    • 3

    #1

    Trigger based on key - vfs.file.time

    Hi, I wanted try to test this (Trigger based on key - vfs.file.time - ZABBIX Forums​) in 5.4.11 with agent 2 :

    Item :
    vfs.file.time[c:\sources\test.log,modify]
    units :unixtime

    resultat:
    02/02/2023 04:12:49 PM

    If last modify files is up to xx second

    Triger :

    I have error
    Cannot evaluate function last(/host/vfs.file.time[c:\sources\test.log,modify],#1:now): invalid second parameter.

    you have idea ?

    thx​ for help
  • Answer selected by arnomomo at 07-02-2023, 17:51.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    remove that ":now" from last()... you dont actually need even # 1 as it defaults to that anyway...

    last (/host/key,<#num<:time shift>>)​
    What kind of time shift would be "now"?

    Comment

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

      #2
      remove that ":now" from last()... you dont actually need even # 1 as it defaults to that anyway...

      last (/host/key,<#num<:time shift>>)​
      What kind of time shift would be "now"?

      Comment

      • arnomomo
        Junior Member
        • Feb 2023
        • 3

        #3
        hi,
        thanks for help, it's OK.

        I compare Home and now, it's bad idea.

        It's my first trigger ans it's hard fo me ^^.

        Comment

        Working...