Ad Widget

Collapse

Recovery of trigger for logrt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pontus
    Junior Member
    • Sep 2024
    • 3

    #1

    Recovery of trigger for logrt

    I've set up an item to monitor Apache logs for 500-errors in order to troubleshoot a misbehaving backed, as follows
    Code:
    logrt[{$APACHE_LOG_LOCATION},HTTP\/\d\.\d"\s50\d\s,,,skip]
    I would like a problem being triggered if more than 30 error's is detected within 60 seconds.
    I've done so with the following trigger
    Code:
    count(/Apache error logs/logrt[{$APACHE_LOG_LOCATION},HTTP\/\d\.\d"\s60\d\s,,,skip],60s)>30
    The problem is that even though lots of non-500 (i.e. http 200) is coming in, the trigger gets stuck in problem state.

    Can anyone please point me in the right direction or perhaps give examples about how to set this up.
Working...