[Nagiosplug-checkins] CVS: nagiosplug/plugins check_procs.c,1.11,1.12

Ton Voon tonvoon at users.sourceforge.net
Tue Mar 25 19:59:02 CET 2003


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

Modified Files:
	check_procs.c 
Log Message:
Removal of ps_raw and ps_vars


Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** check_procs.c	24 Mar 2003 16:23:01 -0000	1.11
--- check_procs.c	26 Mar 2003 03:57:58 -0000	1.12
***************
*** 118,127 ****
  
  	while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) {
- #ifdef USE_PS_VARS
  		cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST);
! #else
! 		cols = sscanf (input_buffer, PS_FORMAT, procstat, &procuid, 
! 							&procppid, &pos, procprog);
! #endif
  		/* Zombie processes do not give a procprog command */
  		if ( cols == 3 && strstr(procstat, zombie) ) {
--- 118,123 ----
  
  	while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) {
  		cols = sscanf (input_buffer, PS_FORMAT, PS_VARLIST);
! 
  		/* Zombie processes do not give a procprog command */
  		if ( cols == 3 && strstr(procstat, zombie) ) {





More information about the Commits mailing list