nama@localhost# sudo apt-get install snmpd
Cari dan Edit Konfigurasi nya :
#-------------------- Setting di /etc/snmp/snmpd.conf-------------
# sec.name source community
com2sec readonly 192.168.0.100 publiksaja # ini ip-nya server cacti
com2sec readonly localhost publiksaja
# sec.model sec.name
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
# incl/excl subtree mask
view all included .1 80
# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Server Room
syscontact mail@domainku.com
#disk /
#disk /boot
#disk /usr
#disk /var
#---------------------akhir dari isi snmpd.conf---------------
Cari dan Ganti line berikut di /etc/default/snmpd
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
dengan option berikut
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'
Mau ngetesnya Ini >>>
sebelumnya restart dulu snmpd daemonnya dengan cara :
nama@localhost# sudo /etc/init.d/snmpd restart
Standarnya perintahnya :
nama@localhost# snmpwalk -v1 -c
nama@localhost# snmpwalk -v1 -c publiksaja 192.168.0.100
Segitu jo....
No comments:
Post a Comment