On 16 May 2012 14:35, Jérôme BELLEGARDE <
j.bellega...@alpha-direct-services.com> wrote:

> Hey,
>
> I worked on it some time.
>
> Now its running the agent from /usr/local/sbin.
>
> ps -ef | grep snmp
>
> => snmp     57859     1  0 10:51 ?        00:00:00 /usr/local/sbin/snmpd
> -Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid
>
>
> But, when I try now an
> snmpget -v2c -c Dialog localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject
> => Timeout: No Response from localhost.
>
> snmpget -v2c -c locahost  localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject
> => Timeout: No Response from localhost.
>
>
> I have compiled with info like that for testing :
>
>
> ./configure --with-default-snmp-version="2"
> --with-sys-contact="@@no.where" --with-sys-location="Unknown"
> --with-logfile="/var/log/snmpd.log"
> --with-persistent-directory="/var/net-snmp"
> --with-mibs="SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-TYPES:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-FRAMEWORK-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:IP-FORWARD-MIB:NET-SNMP-PASS-MIB:NET-SNMP-EXTEND-MIB:UCD-DLMOD-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB:NET-SNMP-TUTORIAL-MIB"
> --with-mib-modules="nstAgentModuleObject"
>
>
> And when I try : /usr/local/sbin/snmpd -f -L -d -p 9999
>
> I got :
>
> Warning: no access control information configured.
>  (Config search path:
> /usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/dialog/.snmp)
>  It's unlikely this agent can serve any useful purpose in this state.
>  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file
> for this agent.
> Error opening specified endpoint ""
> Server Exiting with code 1
>
>
> Thx for your help
>
>
>
Run   "snmpconf -g basic_setup"   command, or write r/w community strings
in snmpd.conf

>
>
>
>
>
>
> Cordialement,
>
>
> Jérôme BELLEGARDE
>
>
> ---------------------------------------------------------------------------
>
> -----Message d'origine-----
> De : Dave Shield [mailto:d.t.shi...@liverpool.ac.uk]
> Envoyé : mardi 15 mai 2012 16:53
> À : Jérôme BELLEGARDE
> Cc : net-snmp-users@lists.sourceforge.net
> Objet : Re: Problem installing a MIB
>
> On 15 May 2012 15:25, Jérôme BELLEGARDE
> <j.bellega...@alpha-direct-services.com> wrote:
>
> > Now the file is like this :
>
> > export PATH=/usr/local/sbin
>
> Argh!
> That's why you're having problems.
>
> You only needed to change the references to /usr/sbin/snmpd  to read
>  /usr/local/sbin/snmpd
>  (and similarly for snmptrapd).
>
> You shouldn't have changed the PATH setting.
> Now the script is *only* looking in /usr/local/sbin and hence can't find
> any of the usual Linux commands.
>
> Put this line back to the way it was before
>      export PATH=/sbin:/usr/sbin:/bin:/usr/bin
>
> and try again
>
> 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
>
------------------------------------------------------------------------------
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

Reply via email to