Hello, Thanks for your fast answer.
I have download the tar package on the snmp-website / mirror. I have kept all defaut parameters while ./configure, only changed the snmp version to 2c. (2) >> Have you tweaked this 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 ? I have installed snmp package by apt-get install snmp. Then, I change it and modify the snmpd.conf to write my community ect. (in my previous mail I have joined all the snmpd.conf file.) The snmpd in /etc/init.d is the basic one Here the snmpd file in /etc/init.d : set -e . /lib/lsb/init-functions export PATH=/sbin:/usr/sbin:/bin:/usr/bin test -x /usr/sbin/snmpd || exit 0 test -x /usr/sbin/snmptrapd || exit 0 # Defaults export MIBDIRS=/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp SNMPDRUN=yes SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid' TRAPDRUN=no TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid' # Reads config file (will override defaults above) [ -r /etc/default/snmpd ] && . /etc/default/snmpd # Cd to / before starting any daemons. cd / # Create compatibility link to old AgentX socket location if [ "$SNMPDCOMPAT" = "yes" ] && [ "$1" != status ]; then ln -sf /var/agentx/master /var/run/agentx fi 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 if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmptrapd \ -- $TRAPDOPTS log_progress_msg " snmptrapd" fi ;; stop) log_daemon_msg "Stopping network management services:" start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmpd log_progress_msg " snmpd" start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmptrapd log_progress_msg " snmptrapd" ;; restart) log_daemon_msg "Restarting network management services:" start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmpd start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmptrapd # Allow the daemons time to exit completely. sleep 2 if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then start-stop-daemon --quiet --start --exec /usr/sbin/snmpd -- $SNMPDOPTS log_progress_msg " snmpd" fi if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then # Allow snmpd time to start up. sleep 1 start-stop-daemon --quiet --start --exec /usr/sbin/snmptrapd -- $TRAPDOPTS log_progress_msg " snmptrapd" fi ;; reload|force-reload) log_daemon_msg "Reloading network management services:" if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then start-stop-daemon --quiet --stop --signal 1 \ --pidfile /var/run/snmpd.pid --exec /usr/sbin/snmpd log_progress_msg " snmpd" fi ;; status) status=0 status_of_proc /usr/sbin/snmpd snmpd || status=$? status_of_proc /usr/sbin/snmptrapd snmptrapd || status=$? exit $status ;; *) echo "Usage: /etc/init.d/snmpd {start|stop|restart|reload|force-reload|status}" exit 1 esac exit 0 thanks for your help. Cordialement, Jérôme BELLEGARDE --------------------------------------------------------------------------- -----Message d'origine----- De : Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Envoyé : mardi 15 mai 2012 11:54 À : Jérôme BELLEGARDE Cc : net-snmp-users@lists.sourceforge.net Objet : Re: Problem installing a MIB On 15 May 2012 10:22, Jérôme BELLEGARDE <j.bellega...@alpha-direct-services.com> wrote: > ./configure --with-mib-modules="nstAgentModuleObject" > Make > Make install This is presumably installing a source-compiled version of the agent. Where was it installed to? ( /usr/local/sbin/snmpd would be the usual location. ) > Restart /etc/init.d/snmpd restart (Ubuntu server). Have you tweaked this 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). 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