[Nagiosplug-checkins] CVS: nagiosplug/plugins check_disk.c,1.7,1.8

Ton Voon tonvoon at users.sourceforge.net
Sat Mar 8 04:09:03 CET 2003


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

Modified Files:
	check_disk.c 
Log Message:
Fix AIX /proc filesystem (Ian Duggan)


Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** check_disk.c	13 Jan 2003 12:15:15 -0000	1.7
--- check_disk.c	8 Mar 2003 12:08:24 -0000	1.8
***************
*** 16,20 ****
   * above <c_dfp>, a STATE_CRITICAL is returned.  If the percent used
   * disk space is above <w_dfp>, a STATE_WARNING is returned.  If the
!  * speicified filesystem cannot be read, a STATE_CRITICAL is returned,
   * other errors with reading the output result in a STATE_UNKNOWN
   * error.
--- 16,20 ----
   * above <c_dfp>, a STATE_CRITICAL is returned.  If the percent used
   * disk space is above <w_dfp>, a STATE_WARNING is returned.  If the
!  * specified filesystem cannot be read, a STATE_CRITICAL is returned,
   * other errors with reading the output result in a STATE_UNKNOWN
   * error.
***************
*** 95,98 ****
--- 95,102 ----
  
  		if (!index (input_buffer, '/'))
+ 			continue;
+ 
+ 		/* Fixes AIX /proc fs which lists - for size values */
+ 		if (strstr (input_buffer, "/proc ") == input_buffer)
  			continue;
  





More information about the Commits mailing list