[Nagiosplug-checkins] CVS: nagiosplug/plugins-scripts check_disk_smb.pl,1.8,1.9

Ton Voon tonvoon at users.sourceforge.net
Wed Jul 2 08:58:09 CEST 2003


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

Modified Files:
	check_disk_smb.pl 
Log Message:
Update error message from smbclient v2.2.7 (Patch 740132 - Cove Schneider)


Index: check_disk_smb.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_disk_smb.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** check_disk_smb.pl	20 Feb 2003 03:16:26 -0000	1.8
--- check_disk_smb.pl	2 Jul 2003 15:57:29 -0000	1.9
***************
*** 206,221 ****
  	$state = "UNKNOWN";
  	foreach (@lines) {
! 		if (/Access denied/) {
  			$answer = "Access Denied\n";
  			$state = "CRITICAL";
  			last;
  		}
! 		if (/(Unknown host \w*)/) {
! 			$answer = "$1\n";_
! 
  			$state = "CRITICAL";
  			last;
  		}
! 		if (/(You specified an invalid share name)/) {
  			$answer = "Invalid share name \\\\$host\\$share\n";
  			$state = "CRITICAL";
--- 206,220 ----
  	$state = "UNKNOWN";
  	foreach (@lines) {
! 		if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
  			$answer = "Access Denied\n";
  			$state = "CRITICAL";
  			last;
  		}
! 		if (/(Unknown host \w*|Connection.*failed)/) {
! 			$answer = "$1\n";
  			$state = "CRITICAL";
  			last;
  		}
! 		if (/(You specified an invalid share name|NT_STATUS_BAD_NETWORK_NAME)/) {
  			$answer = "Invalid share name \\\\$host\\$share\n";
  			$state = "CRITICAL";





More information about the Commits mailing list