[Nagiosplug-checkins] CVS: nagiosplug/plugins check_procs.c,1.13,1.14

Ton Voon tonvoon at users.sourceforge.net
Mon Apr 7 16:41:03 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv12614

Modified Files:
	check_procs.c 
Log Message:
Fixed zombie processes


Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** check_procs.c	7 Apr 2003 22:53:49 -0000	1.13
--- check_procs.c	7 Apr 2003 23:40:33 -0000	1.14
***************
*** 203,209 ****
  
  		/* Zombie processes do not give a procprog command */
! 		/* - would they give other columns? */
! 		if ( cols == 3 && strstr(procstat, zombie) ) {
! 			cols = 4;
  		}
  		if ( cols >= 7 ) {
--- 203,208 ----
  
  		/* Zombie processes do not give a procprog command */
! 		if ( cols == 6 && strstr(procstat, zombie) ) {
! 			cols = 7;
  		}
  		if ( cols >= 7 ) {





More information about the Commits mailing list