[Nagiosplug-checkins] CVS: nagiosplug/plugins check_disk.c,1.7.2.2,1.7.2.3

Ton Voon tonvoon at users.sourceforge.net
Wed Jun 25 05:39:31 CEST 2003


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

Modified Files:
      Tag: r1_3_0
	check_disk.c 
Log Message:
Returns critical if fs missing. Only works for single fs specified in -p,
otherwise will return warning as before (reported by Jim Carroll)


Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -C2 -r1.7.2.2 -r1.7.2.3
*** check_disk.c	9 Mar 2003 10:36:02 -0000	1.7.2.2
--- check_disk.c	25 Jun 2003 12:38:37 -0000	1.7.2.3
***************
*** 151,156 ****
  			result = STATE_WARNING;
  
! 	if (usp < 0)
  		printf ("Disk \"%s\" not mounted or nonexistant\n", path);
  	else if (result == STATE_UNKNOWN)
  		printf ("Unable to read output\n%s\n%s\n", command_line, input_buffer);
--- 151,158 ----
  			result = STATE_WARNING;
  
! 	if (usp < 0) {
  		printf ("Disk \"%s\" not mounted or nonexistant\n", path);
+ 		result = STATE_CRITICAL;
+ 	}
  	else if (result == STATE_UNKNOWN)
  		printf ("Unable to read output\n%s\n%s\n", command_line, input_buffer);





More information about the Commits mailing list