How To Monitoring Linux KVM With SNMP On Ubuntu
How To Monitoring Linux KVM With SNMP On Ubuntu
on ubuntu
Frist you must install git and other package with
After clone libvirt-snmp git to your computer you must change directory to libvirt-snmp
# cd libvirt-snmp
# ./autobuild.sh
If every thing is ok you must have a tbz package into bellow address
# ~/libvirt-snmp/build
Change directory ti this and copy it to home directory for compile and build
# cp build/libvirt-snmp-0.0.3.tar.gz /root/
# cd
# tar xzvf libvirt-snmp-0.0.3.tar.gz
# cd libvirt-snmp-0.0.3/
# ./configure
# make
# make install
/usr/local/bin/libvirtMib_subagent
Configure SNMP
# /etc/init.d/snmpd status
If your daemon is install and you have a snmpd.conf file in /etc/snmp. Give a backup from this and copy
bellow information and restart your snmp daemon
# cd /etc/snmp
# mv snmpd.conf snmpd.conf_bk
# nano snmpd.conf
# /etc/init.d/snmpd restart
After install it you must run bellow command and find your snmp OID and use it
f7f92f9b-14e7-4621-849c-ac51977751c3