snmpd woes

David Bandel david.bandel
Thu Jun 21 17:32:58 PDT 2007


On 6/21/07, Net Llama! <netllama at linux-sxs.org> wrote:
> I'm trying to get snmpd working on several systems with the goal of then
> using MRTG to graph their network traffic.  Unfortunately, I can't seem to
> figure out how to configure snmpd to listen on anything but localhost.

Depending on the distro, but almost all these days only enable
listening on localhost.
netstat -pan can confirm when it is listening on UDP port 61 to other
than localhost.

On Debian, there's a /etc/default/snmpd file as well as the
/etc/snmp/snmpd.conf file.  It's in default that the service is
configured to listen on only localhost.  Check to see if your distro
does something similar (/etc/init.d/snmpd should give you a clue where
to look based on what it sources).


>
> If I run:
> snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
>
> I get the expected response.  But if I substitute localhost with the IP or
> hostname of a different system, I end up with a timeout.
>
> I'm running snmpd with the following command:
> snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a
>
> I've spent the past hour googling, and can't seem to find anything
> obvious, even though this seems like a trivial configuration issue.  Help?
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Lonni J Friedman                        netllama at linux-sxs.org
> LlamaLand                               http://netllama.linux-sxs.org
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc: http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> ***  OFF TOPIC conversations should get sent to general at linux-sxs.org.  This rule will be strictly enforced.  ***
>
> Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
>

HTH,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto



More information about the Linux-users mailing list