summaryrefslogtreecommitdiffstats
path: root/web/attachments/137019-nagios-plugins-snmp-v2c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/137019-nagios-plugins-snmp-v2c.patch')
-rw-r--r--web/attachments/137019-nagios-plugins-snmp-v2c.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/web/attachments/137019-nagios-plugins-snmp-v2c.patch b/web/attachments/137019-nagios-plugins-snmp-v2c.patch
new file mode 100644
index 0000000..c3aaa60
--- /dev/null
+++ b/web/attachments/137019-nagios-plugins-snmp-v2c.patch
@@ -0,0 +1,22 @@
1diff -Naur nagios-plugins-1.4.orig/plugins/check_snmp.c nagios-plugins-1.4/plugins/check_snmp.c
2--- nagios-plugins-1.4.orig/plugins/check_snmp.c 2005-01-20 17:03:56.000000000 -0800
3+++ nagios-plugins-1.4/plugins/check_snmp.c 2005-06-02 13:05:51.000000000 -0700
4@@ -646,6 +646,9 @@
5 asprintf(&proto, DEFAULT_PROTOCOL);
6 asprintf(&authpriv, "%s%s", "-c ", community);
7 }
8+ else if ( strcmp (proto, "2c") == 0 ) { /* snmpv2c args */
9+ asprintf(&authpriv, "%s%s", "-c ", community);
10+ }
11 else if ( strcmp (proto, "3") == 0 ) { /* snmpv3 args */
12 asprintf(&proto, "%s", "3");
13
14@@ -859,7 +862,7 @@
15
16 /* SNMP and Authentication Protocol */
17 printf (_("\
18- -P, --protocol=[1|3]\n\
19+ -P, --protocol=[1|2c|3]\n\
20 SNMP protocol version\n\
21 -L, --seclevel=[noAuthNoPriv|authNoPriv|authPriv]\n\
22 SNMPv3 securityLevel\n\