summaryrefslogtreecommitdiffstats
path: root/web/attachments/41358-check_snmp.c.diff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/41358-check_snmp.c.diff
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/41358-check_snmp.c.diff')
-rw-r--r--web/attachments/41358-check_snmp.c.diff10
1 files changed, 10 insertions, 0 deletions
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 @@
1--- check_snmp.c.orig 2002-11-16 06:06:02.000000000 +0100
2+++ check_snmp.c 2003-02-03 11:12:38.000000000 +0100
3@@ -319,6 +319,7 @@
4 eval_method[i] & WARN_EQ ||
5 eval_method[i] & WARN_NE) {
6 p2 = strpbrk (p2, "0123456789");
7+ if (p2 == NULL) terminate (STATE_UNKNOWN,"No valid data returned");
8 response_value[i] = strtoul (p2, NULL, 10);
9 iresult = check_num (i);
10 asprintf (&show, "%lu", response_value[i]);