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. --- .../137019-nagios-plugins-snmp-v2c.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 web/attachments/137019-nagios-plugins-snmp-v2c.patch (limited to 'web/attachments/137019-nagios-plugins-snmp-v2c.patch') 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 @@ +diff -Naur nagios-plugins-1.4.orig/plugins/check_snmp.c nagios-plugins-1.4/plugins/check_snmp.c +--- nagios-plugins-1.4.orig/plugins/check_snmp.c 2005-01-20 17:03:56.000000000 -0800 ++++ nagios-plugins-1.4/plugins/check_snmp.c 2005-06-02 13:05:51.000000000 -0700 +@@ -646,6 +646,9 @@ + asprintf(&proto, DEFAULT_PROTOCOL); + asprintf(&authpriv, "%s%s", "-c ", community); + } ++ else if ( strcmp (proto, "2c") == 0 ) { /* snmpv2c args */ ++ asprintf(&authpriv, "%s%s", "-c ", community); ++ } + else if ( strcmp (proto, "3") == 0 ) { /* snmpv3 args */ + asprintf(&proto, "%s", "3"); + +@@ -859,7 +862,7 @@ + + /* SNMP and Authentication Protocol */ + printf (_("\ +- -P, --protocol=[1|3]\n\ ++ -P, --protocol=[1|2c|3]\n\ + SNMP protocol version\n\ + -L, --seclevel=[noAuthNoPriv|authNoPriv|authPriv]\n\ + SNMPv3 securityLevel\n\ -- cgit v1.2.3-74-g34f1