diff options
Diffstat (limited to 'plugins-scripts/check_ifoperstatus.pl')
-rwxr-xr-x | plugins-scripts/check_ifoperstatus.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index 3eed4bcb..c190ce95 100755 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl | |||
@@ -124,10 +124,10 @@ if (!defined($session)) { | |||
124 | ## map ifdescr to ifindex - should look at being able to cache this value | 124 | ## map ifdescr to ifindex - should look at being able to cache this value |
125 | 125 | ||
126 | if (defined $ifdescr || defined $iftype) { | 126 | if (defined $ifdescr || defined $iftype) { |
127 | # escape "/" in ifdescr - very common in the Cisco world | ||
128 | if (defined $iftype) { | 127 | if (defined $iftype) { |
129 | $status=fetch_ifindex($snmpIfType, $iftype); | 128 | $status=fetch_ifindex($snmpIfType, $iftype); |
130 | } else { | 129 | } else { |
130 | # escape "/" in ifdescr - very common in the Cisco world | ||
131 | $ifdescr =~ s/\//\\\//g; | 131 | $ifdescr =~ s/\//\\\//g; |
132 | $status=fetch_ifindex($snmpIfDescr, $ifdescr); # if using on device with large number of interfaces | 132 | $status=fetch_ifindex($snmpIfDescr, $ifdescr); # if using on device with large number of interfaces |
133 | # recommend use of SNMP v2 (get-bulk) | 133 | # recommend use of SNMP v2 (get-bulk) |
@@ -325,7 +325,7 @@ sub print_help() { | |||
325 | printf " (Implies the use of -I)\n"; | 325 | printf " (Implies the use of -I)\n"; |
326 | printf " -w (--warn =i|w|c) ignore|warn|crit if the interface is dormant (default critical)\n"; | 326 | printf " -w (--warn =i|w|c) ignore|warn|crit if the interface is dormant (default critical)\n"; |
327 | printf " -D (--admin-down =i|w|c) same for administratively down interfaces (default warning)\n"; | 327 | printf " -D (--admin-down =i|w|c) same for administratively down interfaces (default warning)\n"; |
328 | printf " -M (--maxmsgsize) Max message size - usefull only for v1 or v2c\n"; | 328 | printf " -M (--maxmsgsize) Max message size - useful only for v1 or v2c\n"; |
329 | printf " -t (--timeout) seconds before the plugin times out (default=$TIMEOUT)\n"; | 329 | printf " -t (--timeout) seconds before the plugin times out (default=$TIMEOUT)\n"; |
330 | printf " -V (--version) Plugin version\n"; | 330 | printf " -V (--version) Plugin version\n"; |
331 | printf " -h (--help) usage help \n\n"; | 331 | printf " -h (--help) usage help \n\n"; |