Ad Widget

Collapse

Counting Log Occurrences

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ldunston
    Junior Member
    • May 2009
    • 12

    #1

    Counting Log Occurrences

    I'm monitoring apache logs for various requests in the access and error logs. Zabbix is great at picking up a single occurrence but what I'd like to do is some hysteresis triggers for different count detections (e.g. if x string was matched 3 times in 60 seconds set severity to n). I think there must be way to do it and so far my forum searches haven't uncovered anything for me. If anyone has some info on how to do it, I would love to see it.

    Thanks,
    Les


    This is the part that's working thus far:

    Item:

    log[/var/log/httpd/access_log,GET /common/error.php]

    Trigger:

    {Template_Linux_VivatyApps:log[/var/log/httpd/access_log,GET /common/error.php].str(error)}=1

    Severity: Information
  • ldunston
    Junior Member
    • May 2009
    • 12

    #2
    Found the answer

    Nevermind I finally found it on the forum:

    Comment

    Working...