[Pkg-nagios-devel] patch against check_procs
folkert
folkert at vanheusden.com
Sat Jul 10 15:08:11 UTC 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
--
To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
diaforetikes provoles. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the Pkg-nagios-devel
mailing list