mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Re-attach a comment to where it actually belongs
This commit is contained in:
parent
e72ff30017
commit
1fb635d869
1 changed files with 1 additions and 1 deletions
|
|
@ -124,10 +124,10 @@ if (!defined($session)) {
|
|||
## map ifdescr to ifindex - should look at being able to cache this value
|
||||
|
||||
if (defined $ifdescr || defined $iftype) {
|
||||
# escape "/" in ifdescr - very common in the Cisco world
|
||||
if (defined $iftype) {
|
||||
$status=fetch_ifindex($snmpIfType, $iftype);
|
||||
} else {
|
||||
# escape "/" in ifdescr - very common in the Cisco world
|
||||
$ifdescr =~ s/\//\\\//g;
|
||||
$status=fetch_ifindex($snmpIfDescr, $ifdescr); # if using on device with large number of interfaces
|
||||
# recommend use of SNMP v2 (get-bulk)
|
||||
|
|
|
|||
Loading…
Reference in a new issue