CentOS How To's

How to configured SNMP Service/Daemon on CentOS 6

In this guide I’ll discuss how to install and configured SNMP service on CentOS5/6 or other linux system.

Simple Network Management Protocol (SNMP) is a popular protocol for network management. It is used for collecting information from, and configuring, network devices, such as servers, printers, hubs, switches, and routers on an Internet Protocol (IP) network.

1. To install net-snmp in CentOS run the following command.

Output would be:

2. After install snmp, reate a simple SNMP configuration and dont forget to backup the original config with the following command.

Create a new config file to /etc/snmp/snmpd.conf :
vim /etc/snmp/snmpd.conf

rocommunity public
syslocation “pir8g33k DataCenter”
syscontact pr3p@pir8geek.com

3. Start the SNMP service:

4. Test if the snmp service working fine by the following command.

snmpwalk -v 1 -c public -O e 127.0.0.1

or

5. Make sure to add snmpd to auto-start on reboot:

Note: replace the 127.0.0.1 by the server ip address.

Enjoy…cya

I started blogging around 2011 at #Ubuntupirates, #ProjectX and #pir8geek, I’m currently working as Network/Linux SysAdmin.

I’m a Linux,opensource advocate and interested in network security and InfoSec.

Leave a Reply