LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2014, 05:57 PM   #1
wej
LQ Newbie
 
Registered: Aug 2010
Distribution: Ubuntu/CentOS/Gentoo
Posts: 4

Rep: Reputation: 0
SNMP on CentOS 6.5 not cooperating


Hello,

I have the following very, very basic configuration in my snmpd.conf file on a CentOs 6.5 box. It is a copy of the config from a SuSE box on the same subnet that is known working.
Code:
rocommunity  publiccomm 10.20.20.0/24
rocommunity  publiccomm 127.0.0.0/8

rwcommunity  supersecret 10.20.20.0/24
I installed snmp with "yum install net-snmp net-snmp-utils"

When running "snmpwalk -v 1 -c publiccomm localhost" it dumps all the MIBs as expected. If I replace localhost with the IP address of the system, 10.20.20.41, it times out and doesn't respond. I can't figure out what is going on. netstat shows that snmpd is listening 0.0.0.0:161, and just in case, I added firewall rules at the very top of the iptables config:

Code:
iptables -I INPUT -p tcp --dport 161 -j ACCEPT
iptables -I INPUT -p udp --dport 161 -j ACCEPT
I've run into this problem in the past on Ubuntu hosts. The solution was to remove the 127.0.0.1 from the /etc/default/snmpd configuration file. The problem I am having is that CentOS doesn't seem to have an equivalent file. There is a file in /etc/sysconfig but everything is commented in that file. I checked the /etc/init.d/snmpd file and confirmed that it doesn't have localhost or 127.0.0.1 specified in the parameters passed into the snmpd executable either. I've checked SELinux and set it to permissive to see if that was the problem, but it also didn't solve the issue. I'm running out of things to try to solve this issue. Once I get it working locally, it should be a breeze to get it to listen for remote connections so Cacti can monitor it.

Can anyone point out what I am doing wrong?

Thanks
 
Old 08-27-2014, 02:24 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The SNMP configuration file on CentOS is under /etc/snmp/snmpd.conf.
 
  


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
centos 5.5 snmp services kgopi Linux - Software 1 04-04-2014 05:07 AM
[SOLVED] How do I enable snmp in centos? lhan17 Linux - Newbie 5 05-20-2012 12:53 AM
problem with snmp and centos 6 creatureofthedark Linux - Server 2 11-16-2011 12:50 PM
[SOLVED] SNMP Centos albye Linux - Newbie 1 05-19-2011 08:35 AM
Assistance with SNMP on Redhat/CentOS stuaz Linux - Newbie 2 12-11-2008 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:40 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