LXC node monitoring through Zabbix.
LXC containers monitoring through Zabbix.
Template "Template LXC Node" finds all containers, creates new hosts and apply template "Template LXC CT" on them.
perl, sudo, zabbix-agent.
- copy lxcdiscover.pl, lxc-attach.sh, lxc-cgroup.sh, and lxc-info.sh to /etc/zabbix/
- copy zabbix_agentd.d/lxc.conf to /etc/zabbix/zabbix_agentd.d/
- copy sudoers.d/zabbix to /etc/sudoers.d/
- chown root:root /etc/sudoers.d/zabbix ; chmod 440 /etc/sudoers.d/zabbix
- chmod 755 /etc/zabbix/lxcdiscover.pl /etc/zabbix/lxc-attach.sh /etc/zabbix/lxc-cgroup.sh /etc/zabbix/lxc-info.sh
- restart zabbix-agent daemon.
- import "zbx_templates/Template LXC CT.xml" and "zbx_templates/Template LXC Node.xml" into your templates.
- apply template "Template LXC Node" to LXC hardware node (otherwise known as host system).
- enjoy.
If you have problem with import template "Template LXC Node.xml", try use template without discovery rule and add it later manually. Lelik13a/Zabbix-OpenVZ#2