Ad Widget

Collapse

Monitoring daily log file for error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luli
    Junior Member
    • Apr 2023
    • 2

    #1

    Monitoring daily log file for error

    Hello, we have created a trigger that is supposed to check for errors in the latest daily log file named for example "log-20230707.txt".

    The daily log file is updated every 3 hours when the system runs a task.

    The alert triggers for about a minute if the log contains an error when it is updated/created.


    We are wondering if it is possible to have it only trigger / send an email when the log file has had multiple errors across the day.

    For example if there is just one error 09:00, but no error 12:00, we don't need an alert.
    But if there is one error 09:00 and one error 12:00, we want an alert.
    Is this possible?


    ​​
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Use this https://www.zabbix.com/documentation.../history#count

    Comment

    Working...