summaryrefslogtreecommitdiffstats
path: root/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
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/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
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/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch')
-rw-r--r--web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch b/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
new file mode 100644
index 0000000..47d51fc
--- /dev/null
+++ b/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
@@ -0,0 +1,25 @@
1--- nagios-plugins-1.4.2/plugins/check_snmp.c.orig Wed Jun
21 15:41:
301 2005
4+++ nagios-plugins-1.4.2/plugins/check_snmp.c Thu Jan 12
518:22:
647 2006
7@@ -337,10 +337,17 @@
8 asprintf (&outbuff, "%s %s", outbuff, unitv[i]);
9
10 i++;
11-
12+#if 0
13 char *str[MAX_INPUT_BUFFER];
14 asprintf(str, "=%s%s;;;; ", show, type ? type : "");
15 strcat(perfstr, *str);
16+#else
17+ strcat(perfstr, "=");
18+ strcat(perfstr, show);
19+ if (type)
20+ strcat(perfstr, type);
21+ strcat(perfstr, ";;;; ");
22+#endif
23
24 } /* end while (ptr) */
25