diff options
author | Peter Newman <peternewman@users.noreply.github.com> | 2021-07-22 13:33:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 13:33:14 +0100 |
commit | 1fb635d8691180b312537a4540feb6f947986e86 (patch) | |
tree | d2986637b9163bde7ef930b4b25863ebdde766da /plugins-scripts | |
parent | e72ff300177593fb2f8c0426d4a0acc21c9c78e4 (diff) | |
download | monitoring-plugins-1fb635d8691180b312537a4540feb6f947986e86.tar.gz |
Re-attach a comment to where it actually belongs
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_ifoperstatus.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index 9ede1633..c190ce95 100755 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl @@ -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) |