Explorar el Código

Merge pull request #759 from tomhughes/snmp-ipaddress

Handle snmp IpAddress responses
aaronagios hace 1 año
padre
commit
60b0189c0a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      plugins/check_snmp.c

+ 3 - 0
plugins/check_snmp.c

@@ -488,6 +488,9 @@ main (int argc, char **argv)
 			show = strstr (response, "Timeticks: ");
 			is_ticks = 1;
 		}
+		else if (strstr (response, "IpAddress: ")) {
+			show = strstr (response, "IpAddress: ") + 11;
+		}
 		else {
 			/* This branch is expected to be error-handling only */
 			show = response;