[Nagiosplug-devel] patch against check_procs

folkert folkert at vanheusden.com
Sat Jul 10 17:16:52 CEST 2010


Hi,

Here's a patch against check_procs. It makes it emit performancedata
like other checks do.

diff -uNrBbd nagios-plugins-1.4.14/plugins/check_procs.c nagios-plugins-1.4.14.new//plugins/check_procs.c
--- nagios-plugins-1.4.14/plugins/check_procs.c	2009-02-20 00:55:23.000000000 +0100
+++ nagios-plugins-1.4.14.new//plugins/check_procs.c	2010-07-10 16:43:07.000000000 +0200
@@ -301,6 +301,8 @@
 	if ( verbose >= 1 && strcmp(fails,"") )
 		printf (" [%s]", fails);
 
+	printf ("|procs=%d", procs);
+
 	printf ("\n");
 	return result;
 }


Folkert van Heusden

p.s. check http://vanheusden.com/java/CoffeeSaint/ - a nagios status
viewer for on large screens in your sysadmin room

-- 
MultiTail ist eine flexible Applikation um Logfiles und Kommando
Eingaben zu überprüfen. Inkl. Filter, Farben, Zusammenführen,
Ansichten etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com




More information about the Devel mailing list