From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/41358-check_snmp.c.diff | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 web/attachments/41358-check_snmp.c.diff (limited to 'web/attachments/41358-check_snmp.c.diff') diff --git a/web/attachments/41358-check_snmp.c.diff b/web/attachments/41358-check_snmp.c.diff new file mode 100644 index 0000000..c5d28be --- /dev/null +++ b/web/attachments/41358-check_snmp.c.diff @@ -0,0 +1,10 @@ +--- check_snmp.c.orig 2002-11-16 06:06:02.000000000 +0100 ++++ check_snmp.c 2003-02-03 11:12:38.000000000 +0100 +@@ -319,6 +319,7 @@ + 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]); -- cgit v1.2.3-74-g34f1