summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e19425)
raw | patch | inline | side by side (parent: 4e19425)
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Wed, 25 May 2005 03:23:19 +0000 (03:23 +0000) | ||
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Wed, 25 May 2005 03:23:19 +0000 (03:23 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1178 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_snmp.c | patch | blob | history |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index d66d834e145fa0183f6bd6915b33ca37fb101de3..5d65113f4046e7fa5c25ab4b73b690f00b566de6 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
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");
/* 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\