Is there a plugin for monitoring npcd/perfdata timeouts?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Is there a plugin for monitoring npcd/perfdata timeouts?

Post 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"
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

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

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

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

Post by nagiosadmin42 »

Perfect, thanks!
Locked