ゴジラ

Using SNMP on CentOS 6 & 7

Install SNMPD on your machine,

yum -y install net-snmp net-snmp-utils

Move the default config to a different file,

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bk

Now, add the following into /etc/snmp/snmpd.conf

rocommunity community snmp_trap
syslocation location
syscontact your@email.id.com
disk /

Where,

For example,

rocommunity home 127.0.0.1
syslocation Los Angeles, CA
syscontact your@email.id.com
disk /

Last modified: December 06 2019 14:21:55