libvirt monitoring through Zabbix
Monitor your libvirt resources through Zabbix
- libvirt-python (tested with 4.5.0)
- zabbix 4.x
- 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
- import zbx_templates/zabbix_libvirt-4.xml into the Zabbix templates
- apply template to libvirt system
- drink coffee and enjoy
- 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)