diff options
| author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-21 07:59:07 -0500 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-21 07:59:07 -0500 |
| commit | 11cf54ca78185d820085a476cdbf7d8f9149c292 (patch) | |
| tree | f91c77af08f3bbe60be2a1a699033ad7eda27ba2 /plugins-scripts/check_disk_smb.pl | |
| parent | 66544851f7a4f5eeaf86d1cee8b1f54c76f98433 (diff) | |
| parent | 6141cfebf6c42873e0181105d2051143d8c11eb7 (diff) | |
| download | monitoring-plugins-11cf54ca78185d820085a476cdbf7d8f9149c292.tar.gz | |
Merge branch 'rename'
Diffstat (limited to 'plugins-scripts/check_disk_smb.pl')
| -rwxr-xr-x | plugins-scripts/check_disk_smb.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 0c89db57..8b6cd2eb 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | # | 3 | # |
| 4 | # check_disk.pl <host> <share> <user> <pass> [warn] [critical] [port] | 4 | # check_disk.pl <host> <share> <user> <pass> [warn] [critical] [port] |
| 5 | # | 5 | # |
| 6 | # Nagios host script to get the disk usage from a SMB share | 6 | # Monitoring host script to get the disk usage from a SMB share |
| 7 | # | 7 | # |
| 8 | # Changes and Modifications | 8 | # Changes and Modifications |
| 9 | # ========================= | 9 | # ========================= |
| @@ -171,7 +171,7 @@ my $res = undef; | |||
| 171 | my $perfdata = ""; | 171 | my $perfdata = ""; |
| 172 | my @lines = undef; | 172 | my @lines = undef; |
| 173 | 173 | ||
| 174 | # Just in case of problems, let's not hang Nagios | 174 | # Just in case of problems, let's not hang the monitoring system |
| 175 | $SIG{'ALRM'} = sub { | 175 | $SIG{'ALRM'} = sub { |
| 176 | print "No Answer from Client\n"; | 176 | print "No Answer from Client\n"; |
| 177 | exit $ERRORS{"UNKNOWN"}; | 177 | exit $ERRORS{"UNKNOWN"}; |
| @@ -293,7 +293,7 @@ sub print_help () { | |||
| 293 | print_revision($PROGNAME,'@NP_VERSION@'); | 293 | print_revision($PROGNAME,'@NP_VERSION@'); |
| 294 | print "Copyright (c) 2000 Michael Anthon/Karl DeBisschop | 294 | print "Copyright (c) 2000 Michael Anthon/Karl DeBisschop |
| 295 | 295 | ||
| 296 | Perl Check SMB Disk plugin for Nagios | 296 | Perl Check SMB Disk plugin for monitoring |
| 297 | 297 | ||
| 298 | "; | 298 | "; |
| 299 | print_usage(); | 299 | print_usage(); |
