diff options
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 | ||
