Ad Widget

Collapse

zabbix trigger alert on log files not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • conehead
    Junior Member
    • Nov 2019
    • 9

    #1

    zabbix trigger alert on log files not working

    Hi,
    I am using logrt at the moment to monitor some log files of swichtes which is working perfectly, for testing i am using the following expression

    Code:
    logrt[/var/log/remotelogs/10.*.log,REJECTED,,,skip,,]
    Now i want to create a trigger for everytime the rejected is visible in the logs and their i am lost ... I am sure the last is not working because that is checking for numeric values. I see two options to create this trigger and that is creating an alarm everytime there is something in the log (sort of count option) or an expression that searches for rejected and then gives an alarm but that is wat i am doing to generatie the alerts ...
    So how do i adjust the expression to give an alert when rejected is found?

    Click image for larger version

Name:	image.png
Views:	238
Size:	8.7 KB
ID:	480802
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Code:
    find(/hier-graylog/logrt[/var/log/remotelogs/10.*.log,REJECTED,,,skip,,],,"like","REJECTED")=1
    or
    Code:
    bitlength(/hier-graylog/logrt[/var/log/remotelogs/10.*.log,REJECTED,,,skip,,])>0
    PS. you do not need those extra commas after "skip" in item config..

    Comment

    • conehead
      Junior Member
      • Nov 2019
      • 9

      #3
      thanks,

      that worked like a charm

      Comment

      Working...