zabbix-kvm-res
zabbix-kvm-res copied to clipboard
KVM monitoring through zabbix
zabbix-kvm-res
libvirt monitoring through Zabbix
Monitor your libvirt resources through Zabbix
Dependencies
- libvirt-python (tested with 4.5.0)
- zabbix 4.x
Installation
Perform these steps on your KVM server:
- copy bin/zabbix-libvirt-res.py to /usr/local/bin/
- copy zabbix_agentd.conf/libvirt.conf to /etc/zabbix/zabbix_agentd.d/
- compile selinux module & import (as root)
]# cd selinux
]# /bin/rm -f zabbix_agent_libvirt.mod zabbix_agent_libvirt.pp
]# checkmodule -M -m -o zabbix_agent_libvirt.mod zabbix_agent_libvirt.te
]# semodule_package -o zabbix_agent_libvirt.pp -m zabbix_agent_libvirt.mod
]# semodule -i zabbix_agent_libvirt.pp
- restart zabbix-agent daemon
Perform these steps on your Zabbix server (through the web gui)
- import zbx_templates/zabbix_libvirt-4.xml into the Zabbix templates
- apply template to libvirt system
Perform these steps while reclining in a chair, sofa or bed
- drink coffee and enjoy
Acknowledgements
- Patrik Uytterhoeven for putting it out there
- thirstycat for helping out with the flags of some libvirt methods
- Stefano Blasco for providing feedback and code to make it work with libvirt-python 0.9.12.3)