Explorar o código

Counter32 tag parsing added

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@250 f882894a-f735-0410-b71e-b25c423dba1c
Subhendu Ghosh %!s(int64=23) %!d(string=hai) anos
pai
achega
1c359fe16f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      plugins/check_snmp.c

+ 2 - 0
plugins/check_snmp.c

@@ -297,6 +297,8 @@ main (int argc, char **argv)
 			show = strstr (response, "Gauge: ") + 7;
 			show = strstr (response, "Gauge: ") + 7;
 		else if (strstr (response, "Gauge32: "))
 		else if (strstr (response, "Gauge32: "))
 			show = strstr (response, "Gauge32: ") + 9;
 			show = strstr (response, "Gauge32: ") + 9;
+		else if (strstr (response, "Counter32: "))
+			show = strstr (response, "Counter32: ") + 11;
 		else if (strstr (response, "INTEGER: "))
 		else if (strstr (response, "INTEGER: "))
 			show = strstr (response, "INTEGER: ") + 9;
 			show = strstr (response, "INTEGER: ") + 9;
 		else
 		else