Ver Fonte

Merge pull request #759 from tomhughes/snmp-ipaddress

Handle snmp IpAddress responses
aaronagios há 1 ano atrás
pai
commit
60b0189c0a
1 ficheiros alterados com 3 adições e 0 exclusões
  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;