Page 1 of 1

check_log

Posted: Fri May 24, 2019 4:04 am
by nousees
Hi all,

I've configured the check_log plugin and it works fine in terms of: detect the pattern and raise an alert.
The problem is that after raise that alert, on the next check the alert is reset to ok when it shouldn't.
I understand that after it detects the pattern as critical, as it doesn't match again that pattern on the next check, it refresh the alert to ok. Not sure how to prevent that.

Thanks in advance.

Regards.

Re: check_log

Posted: Fri May 24, 2019 2:52 pm
by npolovenko
Hello, @nousees. You should set "max check attempts" for this service to 1. This way nagios will not be rechecking the service if it finds the pattern, but instead, it will send out an email notification right away.