Ad Widget

Collapse

Zabbix agent2 didn't create a problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palhuca
    Junior Member
    • Apr 2023
    • 1

    #1

    Zabbix agent2 didn't create a problem

    Hello guys!

    I had an issue with a log monitoring, everything seems fine, but I am trying to understand why the monitoring didn't work.
    I have a template that uses LLD to discover log file, the item and trigger were created fine. A few log lines matched with the positive REGEX and there should be a problem. I discovered the issue the next day in another host because the same template is applied to this host and triggered the Problem.

    So I forced the problem on the host that didn't create the problem and it worked fine. I also applied the template in another host and copied the whole log file to this host (file size 5MB , about 47.000 lines) and I got the alert/Problem, so the template, MAXLINE... everything is fine,... any idea what happened or what can I check?

    Item Prototype:
    log["{#LOGFILE}",@REGEX,,1000,skip,,]

    Trigger prototype:
    length(last(/APP_LOG_CRITICAL/log["{#LOGFILE}",@REGEX,,1000,skip,,]))>=1


    Best regards.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Were the matching lines already present when you applied the template? As you have "skip" option there, then newly created item will start from that point and not look for previously existing lines... Adding "problem lines" after you created items seems to work as expected...

    Comment

    Working...