summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2003-01-17 05:37:22 +0000
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2003-01-17 05:37:22 +0000
commit1c359fe16f08025253871c3616dfc76ea96b906b (patch)
tree8e0dee81e5e47b8e13cdfa47adc0deb82ef33c5b
parent3a04e399fd7aeeeb8c537fd83c52e32aa8670b4d (diff)
downloadmonitoring-plugins-1c359fe16f08025253871c3616dfc76ea96b906b.tar.gz
Counter32 tag parsing added
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@250 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_snmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index b0059845..83083a85 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -297,6 +297,8 @@ main (int argc, char **argv)
297 show = strstr (response, "Gauge: ") + 7; 297 show = strstr (response, "Gauge: ") + 7;
298 else if (strstr (response, "Gauge32: ")) 298 else if (strstr (response, "Gauge32: "))
299 show = strstr (response, "Gauge32: ") + 9; 299 show = strstr (response, "Gauge32: ") + 9;
300 else if (strstr (response, "Counter32: "))
301 show = strstr (response, "Counter32: ") + 11;
300 else if (strstr (response, "INTEGER: ")) 302 else if (strstr (response, "INTEGER: "))
301 show = strstr (response, "INTEGER: ") + 9; 303 show = strstr (response, "INTEGER: ") + 9;
302 else 304 else