[monitoring-plugins] Re-attach a comment to where it actually belongs

GitHub git at monitoring-plugins.org
Thu Jul 22 18:10:12 CEST 2021


    Module: monitoring-plugins
    Branch: master
    Commit: 1fb635d8691180b312537a4540feb6f947986e86
    Author: Peter Newman <peternewman at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Thu Jul 22 13:33:14 2021 +0100
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=1fb635d

Re-attach a comment to where it actually belongs

---

 plugins-scripts/check_ifoperstatus.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)) {
 ## 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)



More information about the Commits mailing list