Page 1 of 1

Is there a plugin for monitoring npcd/perfdata timeouts?

Posted: Thu Sep 18, 2014 12:29 pm
by nagiosadmin42
Has anyone come across (or written) a plugin to monitor npcd.log and perfdata.log for max load/timeout conditions?

For example:

Code: Select all

tail -F /usr/local/nagios/var/npcd.log | grep 'MAX load'
[09-18-2014 07:43:01] NPCD: WARN: MAX load reached: load 15.620000/15.000000 at i=1[09-18-2014 07:43:16] NPCD: DEBUG: load00

tail -F /usr/local/nagios/var/perfdata.log | grep Timeout
2014-09-18 10:19:44 [18996] [0] *** TIMEOUT: Timeout after 20 secs. ***
2014-09-18 10:19:44 [18996] [0] *** ERROR: Timeout while processing Host: "TEST02" Service: "TCP_Connections"

Re: Is there a plugin for monitoring npcd/perfdata timeouts?

Posted: Thu Sep 18, 2014 12:50 pm
by BanditBBS
The best log monitoring script I have ever found is here: http://labs.consol.de/lang/en/nagios/check_logfiles/ and it can easily do what you are wanting.

Re: Is there a plugin for monitoring npcd/perfdata timeouts?

Posted: Thu Sep 18, 2014 12:53 pm
by nagiosadmin42
Perfect, thanks!