Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0
SNMP on CentOS 6.5 not cooperating


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.
rocommunity  publiccomm
rocommunity  publiccomm

rwcommunity  supersecret
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,, it times out and doesn't respond. I can't figure out what is going on. netstat shows that snmpd is listening, and just in case, I added firewall rules at the very top of the iptables config:

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 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 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?

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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:55 PM.

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