Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snmp issue - Timeout: No Response from localhost

Status
Not open for further replies.

Samengr

Technical User
Feb 14, 2008
8
0
0
GB
Hi every one,

We are monitoring resources with nagios using snmp plugins.

I am facing issues on few machines but rest all are ok. They have the same config but I don't know what is wrong.

I tried as much as I could but couldn't fix it.

Here is the rpms installed on this client

[root@w2 ~]# rpm -qa | grep snmp
net-snmp-libs-5.3.2.2-7.el5_4.2
net-snmp-5.3.2.2-7.el5_4.2
net-snmp-utils-5.3.2.2-7.el5_4.2

The config file is
[root@w2 ~]# cat /etc/snmp/snmpd.conf
rocommunity secret

[root@w2 ~]# lsof -i :161
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
snmpd 13458 root 10u IPv4 292733053 UDP *:snmp

[root@w2 ~]# /etc/init.d/snmpd status
snmpd (pid 1345 is running...

but when I test

[root@w2 ~]# snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.1.1.0
Timeout: No Response from localhost
[root@w2 ~]# snmpget -v1 -c secret 127.0.0.1 system.sysDescr.0
Timeout: No Response from 127.0.0.1.

See the output on one of the other client where it is working

[root@w5 ~]# snmpwalk -v 1 -c streamuk localhost .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux w5.mycompany.com 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686
[root@w5 ~]# snmpget -v1 -c streamuk 127.0.0.1 system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux w5.mycompany.com 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686

The same config is working for all clients but have problems with few machines. May be I am doing something wrong in config or testing at very basic level.

Can any body help me to sort this out please?

Many thanks.
 
I have fixed the issue. The system was mounting few dirs from a server that was no more exist.
Thanks
 
Not that familiar with net-snmp but here are some things to try:

1. Try to run the agent in debugging mode and this might give a clue to the problem. First, thing to look for is what port the agent is binding to.

2. Check /etc/services and make sure the snmp entry is 161.

3. Does it work from the localhost, could a router/firewall be blocking the request?

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top