From: SourceForge.net <no...@so...> - 2010-06-21 19:54:53
|
Bugs item #3019243, was opened at 2010-06-21 14:54 Message generated for change (Tracker Item Submitted) made by xclint You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3019243&group_id=12694 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: configure Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Clint (xclint) Assigned to: Nobody/Anonymous (nobody) Summary: execFix directive not working Initial Comment: I am unable to get the execFix directive of snmpd.conf to work properly. I am using Net-SNMP 5.5 on RedHat Enterprise Linux ES 4, update 4. I built the package from source. Here is the content of my snmpd.conf file: rwcommunity public exec testcommand /bin/false execFix testcommand /bin/true I start the snmpd agent up at the command line while running as root: > ./snmpd -f -Lo /root/net-snmp/share/snmp/snmpd.conf: line 3: Error: No matching exec entry net-snmp: 1 error(s) in config file(s) NET-SNMP version 5.5 The agent remains running at this point. I query the extTable like this from another terminal window: > ./snmpwalk -I R -v2c -c public localhost extTable UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extNames.1 = STRING: testcommand UCD-SNMP-MIB::extCommand.1 = STRING: /bin/false UCD-SNMP-MIB::extResult.1 = INTEGER: 1 UCD-SNMP-MIB::extOutput.1 = STRING: UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFixCmd.1 = STRING: As can be seen the execFix directive is not working properly--the agent doesn't recognize it properly, and prints an error. The snmpwalk command indicates that it is not a false error message (i.e., the agent really doesn't know how to process the command). I found the following bug and patch to the Debian fork of Net-SNMP: http://www.mail-archive.com/deb...@li.../msg651166.html This patch does seem to correct the problem for me, but it has not made it into the "real" Net-SNMP code line. As I have little domain or architectural expertise in Net-SNMP agent code, I can't easily evaluate whether this code fix is a proper fix or simply a workaround hack to get it working. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3019243&group_id=12694 |