[Nagiosplug-checkins] nagiosplug/plugins/t check_disk.t,1.21,1.22

Matthias Eble psychotrahe at users.sourceforge.net
Tue Jul 10 22:18:57 CEST 2007


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

Modified Files:
	check_disk.t 
Log Message:
Check_disk now calls stat() for all filesystems to check.
Check_disk prints an strerror() message if the call of stat() fails.


Index: check_disk.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_disk.t,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- check_disk.t	9 May 2007 08:16:44 -0000	1.21
+++ check_disk.t	10 Jul 2007 20:18:55 -0000	1.22
@@ -275,7 +275,7 @@
 
 $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /bob" );
 cmp_ok( $result->return_code, '==', 2, "Checking /bob - return error because /bob does not exist" );
-cmp_ok( $result->output, 'eq', 'DISK CRITICAL - /bob does not exist', 'Output OK');
+like( $result->output, '/^DISK CRITICAL - /bob is not accessible:.*$/', 'Output OK');
 
 $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /" );
 my $root_output = $result->output;





More information about the Commits mailing list