Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to enable reading SNMP from the LAN in Lenny

20 views
Skip to first unread message

Mirto Silvio Busico

unread,
Nov 27, 2008, 5:20:08 AM11/27/08
to
Hi all,

I'm trying to setup a lan monitoring system (zenoss)
Trying to enable SNMP in Lenny, I'm able to query the snmpd daemon only
on localhost.

I tried to configure snmpd.conf file using the tutorial at
http://www.debianhelp.co.uk/snmp.htm
Then I tried the snmpconf utility.

I always get the same behaviour:

snmpwalk localhost -c public -v1 (works correctly and gives a lot of output)

snmpwalk 192.168.32.161 -c public -v1 (gives the error "Timeout: No
Response from 192.168.32.161")

The files /etc/hosts_allow and /etc/hosts_deny are empty

What can I do?

Thanks
Mirto

m_busico.vcf

frank

unread,
Nov 27, 2008, 8:30:13 AM11/27/08
to
On Thu, 2008-11-27 at 10:45 +0100, Mirto Silvio Busico wrote:

> snmpwalk 192.168.32.161 -c public -v1 (gives the error "Timeout: No
> Response from 192.168.32.161")

Remove 127.0.0.1 from /etc/defaults/snmpd and restart your snmpd.

Regards
Frank


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Mirto Silvio Busico

unread,
Nov 28, 2008, 4:00:10 AM11/28/08
to
Mirto Silvio Busico ha scritto:
Replying to myself:

There is a modificationo to do in the file /etc/default/snmpd -> temove "127.0.0.1" from the SNMPDOPTS line.

Sloution found at: http://www.debuntu.org/how-to-monitor-your-servers-with-snmp-and-cacti

Citation:

....

1.2. Configuring SNMPD

The first thing we want to make sure is that snmpd is only going to wait for connections on localhost. To do this, edit file /etc/default/snmpd and make sure those values are set:

SNMPDRUN=yes
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'

If you want your server to listen on all interfaces, remove the 127.0.0.1 bit.

This setting will make sure that the service will be started and that the service is going to bind to localhost.


....

Regards
    Mirto


mirtosilvio_busico.vcf
0 new messages