Răsfoiți Sursa

Add kraken-jim's patch to resolve #650

Sebastian Wolf 3 ani în urmă
părinte
comite
8d07024776
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 0
      NEWS
  2. 1 1
      plugins-scripts/check_ifstatus.pl

+ 1 - 0
NEWS

@@ -6,6 +6,7 @@ This file documents the major additions and syntax changes between releases.
 	check_icmp: Fix "Invalid Argument" errors on FreeBSD 13.1 (#659)
 	check_icmp: Fix address binding in ipv6 (#666)
 	check_ntp/check_ntp_time: Fixed errors when compiling with strict aliasing (#665)
+	check_ifstatus: Fixed issue where OID 1.3.6.1.4.1.9.2.2.1.1.28 was queried on systems that didn't support it (#650)
 	Fixed several compile errors for upcoming clang-16 (#670)
 
 2.4.0 2021-11-18

+ 1 - 1
plugins-scripts/check_ifstatus.pl

@@ -136,11 +136,11 @@ if (!defined($session)) {
 }
 
 
-push(@snmpoids,$snmpLocIfDescr);
 push(@snmpoids,$snmpIfOperStatus);
 push(@snmpoids,$snmpIfAdminStatus);
 push(@snmpoids,$snmpIfDescr);
 push(@snmpoids,$snmpIfType);
+push(@snmpoids,$snmpLocIfDescr) if ( defined $ifXTable);
 push(@snmpoids,$snmpIfName) if ( defined $ifXTable);
 push(@snmpoids,$snmpIfAlias) if ( defined $ifXTable);