LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-07-2009, 04:35 PM   #1
jnojr
Member
 
Registered: Sep 2007
Location: Chandler, AZ
Posts: 227

Rep: Reputation: 20
snmpd running but not responding


RHEL5, net-snmp-5.3.2.2-5.el5

[root@mda-services ~]# service snmpd status
snmpd (pid 27340) is running...
[root@mda-services ~]# snmpwalk -v 2c localhost -c public
Timeout: No Response from localhost

It's been a long time since I've mucked with an snmpd.conf and I seem to remember needing to change something in the stock file to make it go.
 
Old 04-08-2009, 09:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jnojr View Post
RHEL5, net-snmp-5.3.2.2-5.el5

[root@mda-services ~]# service snmpd status
snmpd (pid 27340) is running...
[root@mda-services ~]# snmpwalk -v 2c localhost -c public
Timeout: No Response from localhost

It's been a long time since I've mucked with an snmpd.conf and I seem to remember needing to change something in the stock file to make it go.
Have you tried v1 or v3, instead of 2c? From what I remember, 2c needed other connection info, more than just the community string. And have you tried the 127.0.0.1, instead of localhost?

Also, check your IPtables..see if there's anything blocking ports 161 and 162....
 
Old 04-08-2009, 12:15 PM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
I have checked my system with below mentioned snmp.conf, snmp working fine

## sec.name source community
com2sec local 127.0.0.1 public
com2sec mynetwork 172.16.0.0/16 vnet

## group.name sec.model sec.name
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork

## incl/excl subtree mask
view all included .1 80

## context sec.model sec.level prefix read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all all

#disk / 10000
disk / 10000
disk /opt 10000
disk /usr 10000
disk /var 10000

# Added for support of bcm5820 cards.
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
 
Old 04-08-2009, 04:27 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kirukan View Post
I have checked my system with below mentioned snmp.conf, snmp working fine
Great...thanks for letting us know. But what does your configuration have to do with jnojr's original question?
 
Old 04-08-2009, 04:51 PM   #5
jnojr
Member
 
Registered: Sep 2007
Location: Chandler, AZ
Posts: 227

Original Poster
Rep: Reputation: 20
I started to look back into this. I was thinking, maybe selinux? Nope, nothing in audit.log... but then I happened to notice, in /var/log/messages :

Apr 8 21:43:18 mda-services snmpd[28291]: Connection from UDP: [127.0.0.1]:49806 REFUSED

Effing hosts.allow! I haven't used that in years!

So my issue is resolved. Thanks for the responses!
 
Old 04-09-2009, 02:51 PM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
Great...thanks for letting us know. But what does your configuration have to do with jnojr's original question?
Actually i didnt drive any solution for jnojr's question but what i did was i just post the working configuration.

Quote:
Have you tried v1 or v3, instead of 2c? From what I remember, 2c needed other connection info, more than just the community string
But in configuration if he miss the part,
group MyRWGroup v2c local
group MyROGroup v2c mynetwork

He cant get the response from localhost using snmpwalk.
#snmpwalk -v 2c localhost -c public
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
thunderbird is already running but not responding wearetheborg Linux - Software 9 09-06-2011 12:52 PM
doing /etc/init.d/snmpd status gives "snmpd dead but pid file exists" kaushal143 Linux - Newbie 2 07-10-2008 02:55 AM
Postfix running but not responding CoolCow Linux - Server 5 05-30-2008 09:01 AM
snmpd: relocation error snmpd:undefined symbol: lastAddrAge Strike2000 Slackware 0 02-11-2008 04:45 AM
Running SNMPD on only one Network Adapter TheRealDeal Linux - General 1 04-17-2004 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration