summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a1403e)
raw | patch | inline | side by side (parent: 1a1403e)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 3 Feb 2003 21:43:18 +0000 (21:43 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 3 Feb 2003 21:43:18 +0000 (21:43 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@285 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_snmp.c | patch | blob | history |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 83083a850f93c909ac1b3b52a8904a4b3235f354..a4be11bc64c648b3e7baeeed326155eb000117f2 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
eval_method[i] & WARN_EQ ||
eval_method[i] & WARN_NE) {
p2 = strpbrk (p2, "0123456789");
+ if (p2 == NULL)
+ terminate (STATE_UNKNOWN,"No valid data returned");
response_value[i] = strtoul (p2, NULL, 10);
iresult = check_num (i);
asprintf (&show, "%lu", response_value[i]);