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_ifstatus.pl | |
| parent | 66544851f7a4f5eeaf86d1cee8b1f54c76f98433 (diff) | |
| parent | 6141cfebf6c42873e0181105d2051143d8c11eb7 (diff) | |
| download | monitoring-plugins-11cf54ca78185d820085a476cdbf7d8f9149c292.tar.gz | |
Merge branch 'rename'
Diffstat (limited to 'plugins-scripts/check_ifstatus.pl')
| -rwxr-xr-x | plugins-scripts/check_ifstatus.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins-scripts/check_ifstatus.pl b/plugins-scripts/check_ifstatus.pl index 63c71ffa..a4be9602 100755 --- a/plugins-scripts/check_ifstatus.pl +++ b/plugins-scripts/check_ifstatus.pl | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | #!/usr/local/bin/perl -w | 1 | #!/usr/local/bin/perl -w |
| 2 | # | 2 | # |
| 3 | # check_ifstatus.pl - nagios plugin | 3 | # check_ifstatus.pl - monitoring plugin |
| 4 | # | 4 | # |
| 5 | # | 5 | # |
| 6 | # Copyright (C) 2000 Christoph Kron | 6 | # Copyright (C) 2000 Christoph Kron |
| 7 | # Modified 5/2002 to conform to updated Nagios Plugin Guidelines (S. Ghosh) | 7 | # Modified 5/2002 to conform to updated Monitoring Plugins Guidelines (S. Ghosh) |
| 8 | # Added -x option (4/2003) | 8 | # Added -x option (4/2003) |
| 9 | # Added -u option (4/2003) | 9 | # Added -u option (4/2003) |
| 10 | # Added -M option (10/2003) | 10 | # Added -M option (10/2003) |
| @@ -25,7 +25,7 @@ | |||
| 25 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 25 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 26 | # | 26 | # |
| 27 | # | 27 | # |
| 28 | # Report bugs to: ck@zet.net, nagiosplug-help@lists.sf.net | 28 | # Report bugs to: ck@zet.net, help@monitoring-plugins.org |
| 29 | # | 29 | # |
| 30 | # 11.01.2000 Version 1.0 | 30 | # 11.01.2000 Version 1.0 |
| 31 | # | 31 | # |
| @@ -99,7 +99,7 @@ my %session_opts; | |||
| 99 | 99 | ||
| 100 | 100 | ||
| 101 | 101 | ||
| 102 | # Just in case of problems, let's not hang Nagios | 102 | # Just in case of problems, let's not hang the monitoring system |
| 103 | $SIG{'ALRM'} = sub { | 103 | $SIG{'ALRM'} = sub { |
| 104 | print ("ERROR: No snmp response from $hostname (alarm timeout)\n"); | 104 | print ("ERROR: No snmp response from $hostname (alarm timeout)\n"); |
| 105 | exit $ERRORS{"UNKNOWN"}; | 105 | exit $ERRORS{"UNKNOWN"}; |
| @@ -239,7 +239,7 @@ sub print_usage() { | |||
| 239 | sub print_help() { | 239 | sub print_help() { |
| 240 | print_revision($PROGNAME, '@NP_VERSION@'); | 240 | print_revision($PROGNAME, '@NP_VERSION@'); |
| 241 | print_usage(); | 241 | print_usage(); |
| 242 | printf "check_ifstatus plugin for Nagios monitors operational \n"; | 242 | printf "check_ifstatus plugin for monitoring operational \n"; |
| 243 | printf "status of each network interface on the target host\n"; | 243 | printf "status of each network interface on the target host\n"; |
| 244 | printf "\nUsage:\n"; | 244 | printf "\nUsage:\n"; |
| 245 | printf " -H (--hostname) Hostname to query - (required)\n"; | 245 | printf " -H (--hostname) Hostname to query - (required)\n"; |
