diff options
| author | Greg Cox <gcox@fibbsbozza.local> | 2014-07-29 18:52:12 -0400 |
|---|---|---|
| committer | Greg Cox <gcox@fibbsbozza.local> | 2014-07-29 18:52:12 -0400 |
| commit | 4273dd06ff3e52094d6b267d00e8c51dd74de364 (patch) | |
| tree | 425d127da5dbec7013999ed01b469fc3f72992d9 /plugins-scripts/check_ifstatus.pl | |
| parent | f05e7016320f4671fbf86cc5abc277efea20f79e (diff) | |
| parent | 6f3d5825b203b75aef8d68bf0d117e7a1a4c0616 (diff) | |
| download | monitoring-plugins-4273dd06ff3e52094d6b267d00e8c51dd74de364.tar.gz | |
Merge remote-tracking branch 'upstream/master'
Conflicts:
plugins/netutils.c
Diffstat (limited to 'plugins-scripts/check_ifstatus.pl')
| -rwxr-xr-x | plugins-scripts/check_ifstatus.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins-scripts/check_ifstatus.pl b/plugins-scripts/check_ifstatus.pl index e9e62149..709ad174 100755 --- a/plugins-scripts/check_ifstatus.pl +++ b/plugins-scripts/check_ifstatus.pl | |||
| @@ -34,6 +34,7 @@ use POSIX; | |||
| 34 | use strict; | 34 | use strict; |
| 35 | use FindBin; | 35 | use FindBin; |
| 36 | use lib "$FindBin::Bin"; | 36 | use lib "$FindBin::Bin"; |
| 37 | use lib '@libexecdir@'; | ||
| 37 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 38 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
| 38 | 39 | ||
| 39 | use Net::SNMP; | 40 | use Net::SNMP; |
| @@ -220,7 +221,7 @@ foreach $key (keys %ifStatus) { | |||
| 220 | $ifexclude, | 221 | $ifexclude, |
| 221 | $ifunused); | 222 | $ifunused); |
| 222 | } | 223 | } |
| 223 | my $perfdata = sprintf("up=%d,down=%d,dormant=%d,excluded=%d,unused=%d",$ifup,$ifdown,$ifdormant,$ifexclude,$ifunused); | 224 | my $perfdata = sprintf("up=%d down=%d dormant=%d excluded=%d unused=%d",$ifup,$ifdown,$ifdormant,$ifexclude,$ifunused); |
| 224 | print ("$state: $answer |$perfdata\n"); | 225 | print ("$state: $answer |$perfdata\n"); |
| 225 | exit $ERRORS{$state}; | 226 | exit $ERRORS{$state}; |
| 226 | 227 | ||
