diff options
Diffstat (limited to 'plugins-scripts/check_ifoperstatus.pl')
-rwxr-xr-x | plugins-scripts/check_ifoperstatus.pl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index 588993be..a431cf37 100755 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl | |||
@@ -1,9 +1,9 @@ | |||
1 | #!/usr/local/bin/perl -w | 1 | #!/usr/local/bin/perl -w |
2 | # | 2 | # |
3 | # check_ifoperstatus.pl - nagios plugin | 3 | # check_ifoperstatus.pl - monitoring plugin |
4 | # | 4 | # |
5 | # Copyright (C) 2000 Christoph Kron, | 5 | # Copyright (C) 2000 Christoph Kron, |
6 | # Modified 5/2002 to conform to updated Nagios Plugin Guidelines | 6 | # Modified 5/2002 to conform to updated Monitoring Plugins Guidelines |
7 | # Added support for named interfaces per Valdimir Ivaschenko (S. Ghosh) | 7 | # Added support for named interfaces per Valdimir Ivaschenko (S. Ghosh) |
8 | # Added SNMPv3 support (10/2003) | 8 | # Added SNMPv3 support (10/2003) |
9 | # | 9 | # |
@@ -19,10 +19,11 @@ | |||
19 | # | 19 | # |
20 | # You should have received a copy of the GNU General Public License | 20 | # You should have received a copy of the GNU General Public License |
21 | # along with this program; if not, write to the Free Software | 21 | # along with this program; if not, write to the Free Software |
22 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 22 | # Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
23 | # USA | ||
23 | # | 24 | # |
24 | # | 25 | # |
25 | # Report bugs to: nagiosplug-help@lists.sourceforge.net | 26 | # Report bugs to: help@monitoring-plugins.org |
26 | # | 27 | # |
27 | # 11.01.2000 Version 1.0 | 28 | # 11.01.2000 Version 1.0 |
28 | # | 29 | # |
@@ -97,7 +98,7 @@ my %session_opts; | |||
97 | $status = process_arguments(); | 98 | $status = process_arguments(); |
98 | 99 | ||
99 | 100 | ||
100 | # Just in case of problems, let's not hang Nagios | 101 | # Just in case of problems, let's not hang the monitoring system |
101 | $SIG{'ALRM'} = sub { | 102 | $SIG{'ALRM'} = sub { |
102 | print ("ERROR: No snmp response from $hostname (alarm)\n"); | 103 | print ("ERROR: No snmp response from $hostname (alarm)\n"); |
103 | exit $ERRORS{"UNKNOWN"}; | 104 | exit $ERRORS{"UNKNOWN"}; |
@@ -288,7 +289,7 @@ sub print_usage() { | |||
288 | sub print_help() { | 289 | sub print_help() { |
289 | print_revision($PROGNAME, '@NP_VERSION@'); | 290 | print_revision($PROGNAME, '@NP_VERSION@'); |
290 | print_usage(); | 291 | print_usage(); |
291 | printf "check_ifoperstatus plugin for Nagios monitors operational \n"; | 292 | printf "check_ifoperstatus plugin for monitoring operational \n"; |
292 | printf "status of a particular network interface on the target host\n"; | 293 | printf "status of a particular network interface on the target host\n"; |
293 | printf "\nUsage:\n"; | 294 | printf "\nUsage:\n"; |
294 | printf " -H (--hostname) Hostname to query - (required)\n"; | 295 | printf " -H (--hostname) Hostname to query - (required)\n"; |