Ad Widget

Collapse

Log monitoring for one hour

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vitS
    Member
    • Apr 2021
    • 43

    #1

    Log monitoring for one hour

    Hi,

    I created item to search:

    log[/path/to/file,"is marked as crashed and should be repaired",,,,\1]

    Looks like it is working, but as I understood it will never resolve, because string is visible in file.

    How to create trigger to check log file only for last one hour.

    I tried last() - but it was unsuccessful.

    Maybe someone realized it already?

    Thanks,
  • vitS
    Member
    • Apr 2021
    • 43

    #2
    Thanks,

    Looks like working

    Comment

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

      #3
      Log item reads from the last place, where it stopped. So your once found pattern will not be read again.
      Keeping trigger active for 1h can be done with nodata(1h)=0 expression.Trigger will be active until there is silence for 1h......

      Comment

      Working...