diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-07-02 15:57:29 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-07-02 15:57:29 +0000 |
commit | b25150f0a43642ab3c640e337b7a09893f4744eb (patch) | |
tree | 33ba1b5ec8c090785fa0f85e4b59b7d65aa73b5f /plugins-scripts | |
parent | 7d32d2b5f41662098f444f0f02ab1afccdeb6e41 (diff) | |
download | monitoring-plugins-b25150f0a43642ab3c640e337b7a09893f4744eb.tar.gz |
Update error message from smbclient v2.2.7 (Patch 740132 - Cove Schneider)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@580 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_disk_smb.pl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 870e4e75..b4eee38b 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl @@ -205,18 +205,17 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) { $answer = "Result from smbclient not suitable\n"; $state = "UNKNOWN"; foreach (@lines) { - if (/Access denied/) { + if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) { $answer = "Access Denied\n"; $state = "CRITICAL"; last; } - if (/(Unknown host \w*)/) { - $answer = "$1\n";_ - + if (/(Unknown host \w*|Connection.*failed)/) { + $answer = "$1\n"; $state = "CRITICAL"; last; } - if (/(You specified an invalid share name)/) { + if (/(You specified an invalid share name|NT_STATUS_BAD_NETWORK_NAME)/) { $answer = "Invalid share name \\\\$host\\$share\n"; $state = "CRITICAL"; last; |