[Nagiosplug-devel] [ nagiosplug-Bugs-1081520 ] check_snmp doesn't allow version 2 of SNMP protocol
SourceForge.net
noreply at sourceforge.net
Wed May 25 07:04:12 CEST 2005
Bugs item #1081520, was opened at 2004-12-08 13:21
Message generated for change (Settings changed) made by sghosh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1081520&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Argument proccessing
Group: Release (specify)
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Jason (snackmeat)
Assigned to: Benoit Mortier (opensides)
Summary: check_snmp doesn't allow version 2 of SNMP protocol
Initial Comment:
The current check_snmp plugin does not allow you to
choose SNMP protocol V2. Only V1 or V3.
Some of our network devices will ONLY respond to SNMP
V2 queries. It seems to me that check_snmp should be
modified to allow V2 protocol as well.
This can be accomplished with a simple addition to the
source. In the part where it validates your
arguements, add something like this:
else if ((strcmp(proto,"2c") == 0) ||
(strcmp(proto,"2") == 0)) { /* Added manually,
since old check_snmp doesn't allow protocol V2 */
asprintf(&proto, "%s", "2c");
asprintf(&authpriv, "%s%s", "-c ",
community);
}
Any reason this shouldn't be included in check_snmp?
----------------------------------------------------------------------
>Comment By: Subhendu Ghosh (sghosh)
Date: 2005-05-25 10:02
Message:
Logged In: YES
user_id=46572
CVS updated
----------------------------------------------------------------------
Comment By: Benoit Mortier (opensides)
Date: 2004-12-08 20:02
Message:
Logged In: YES
user_id=388184
Hi,
will put that in check_snmp.c
byz
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1081520&group_id=29880
More information about the Devel
mailing list