[Nagiosplug-checkins] nagiosplug/plugins check_procs.c,1.58,1.59

Matthias Eble psychotrahe at users.sourceforge.net
Sun Jul 15 17:21:53 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27072/plugins

Modified Files:
	check_procs.c 
Log Message:
Make ps column count in zombie detection less restrictive. Thanks to Andrew Elwell (#1280470)


Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- check_procs.c	6 Mar 2007 17:29:15 -0000	1.58
+++ check_procs.c	15 Jul 2007 15:21:50 -0000	1.59
@@ -185,7 +185,7 @@
 		cols = sscanf (input_line, PS_FORMAT, PS_VARLIST);
 
 		/* Zombie processes do not give a procprog command */
-		if ( cols == (expected_cols - 1) && strstr(procstat, zombie) ) {
+		if ( cols < expected_cols && strstr(procstat, zombie) ) {
 			cols = expected_cols;
 		}
 		if ( cols >= expected_cols ) {





More information about the Commits mailing list