Page 1 of 1

check log files

Posted: Thu Feb 28, 2013 12:59 pm
by shahnn28
Hi,

I was hoping to get some advice re: nagios plugins. I am trying to monitor webserver logs and alert for any response times over than 3000 milliseconds. I used the check_log, but that doesn't work too well and doesn't find something that is definately in the log. I was wondering if there was another solution out there that I may be able to utilize.

Re: check log files

Posted: Thu Feb 28, 2013 2:25 pm
by abrist
Is this the plugin you tried? It supports regex, so you should be able to write an expression that checks for the desired response time threshold.

Alternatively, you could write your own custom plugin to grep the logfile every so often from a certain time onward for a 4 digit or larger string starting at 3xxx upward and return a warning or critical.

You could also just use one of the http check plugins and warn on too high of a response time. These can even do deep link checks.