On 15 May 2012 13:11, Jérôme BELLEGARDE <j.bellega...@alpha-direct-services.com> wrote: > I have kept all defaut parameters while ./configure, only changed the snmp > version to 2c. (2)
So the binary was installed into /usr/local/sbin/snmpd - yes? >>> Have you tweaked [the /etc/init.d] script to work with your locally > compiled version of the agent? Or is it still running the > Ubuntu-provided agent binary (which therefore won't include your changes). > > > This means ? The script /etc/init.d/snmpd is designed to start the version of the SNMP agent that is supplied by Ubuntu (and installed via "apt-get") If you look at the body of what this script does, you can see that it is invoking the binary /usr/sbin/snmpd : > case "$1" in > start) > log_daemon_msg "Starting network management services:" > if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then > start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmpd \ > -- $SNMPDOPTS > log_progress_msg " snmpd" > fi Note the value given to the '--exec' option of start-stop-daemon. This is running the original Ubuntu agent (i.e. /usr/sbin/snmpd). The version of the agent that you compiled (including nstAgentModuleObject) was probably installed as /usr/local/sbin/snmpd. If you want to query this object, then you need to be running the new version of the agent, not the original one. Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users