summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2021-07-22 16:08:09 (GMT)
committerGitHub <noreply@github.com>2021-07-22 16:08:09 (GMT)
commit5a2400cc2a9e76787320632ea402f6d8378d5124 (patch)
treed2986637b9163bde7ef930b4b25863ebdde766da
parente72ff300177593fb2f8c0426d4a0acc21c9c78e4 (diff)
parent1fb635d8691180b312537a4540feb6f947986e86 (diff)
downloadmonitoring-plugins-5a2400cc2a9e76787320632ea402f6d8378d5124.tar.gz
Merge pull request #1699 from peternewman/patch-1
Re-attach a comment to where it actually belongs
-rwxr-xr-xplugins-scripts/check_ifoperstatus.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl
index 9ede163..c190ce9 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
126if (defined $ifdescr || defined $iftype) { 126if (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)