SNMP Installation on CentOS
Steps to install SNMP on CentOS
#1. Install
SNMP package
mv
/etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
Create a new SNMP configuration file by running:
touch
/etc/snmp/snmpd.conf
====================================
# First, map the
community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser default TtL*h!wHur
====================================
#3. Start SNMP Service
service snmpd
restart
chkconfig snmpd on
#4. Configure
System firewall Setting
firewall-cmd
--zone=public --add-port=161/udp --permanent
firewall-cmd
--zone=public --add-port=161/tcp --permanent
firewall-cmd
--zone=public --add-port=162/udp --permanent
firewall-cmd
--zone=public --add-port=162/tcp --permanent
firewall-cmd
--reload
Post a Comment