インストール
[root@centos ~]# yum -y install net-snmp-utils
設定
[root@centos ~]# vim /etc/snmp/snmpd.conf com2sec mysecurity 127.0.0.1 public group mygroup v2c mysecurity view all included .1 80 access mygroup "" any noauth exact all none none disk / 10%
起動オプション
[root@centos ~]# vim /etc/sysconfig/snmpd.options OPTIONS="-Lf /var/log/snmpd.log -p /var/run/snmpd.pid -a"
サービスを有効にする
[root@centos ~]# service snmpd start [root@centos ~]# chkconfig snmpd on && chkconfig snmpd --list
確認方法
[root@centos ~]# snmpwalk -v 2c -c public localhost
CentOS5 SNMP設定