Zabbix LXC templates
Shell Perl


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.


  1. copy,,, and to /etc/zabbix/
  2. copy zabbix_agentd.d/lxc.conf to /etc/zabbix/zabbix_agentd.d/
  3. copy sudoers.d/zabbix to /etc/sudoers.d/
  4. chown root:root /etc/sudoers.d/zabbix ; chmod 440 /etc/sudoers.d/zabbix
  5. chmod 755 /etc/zabbix/ /etc/zabbix/ /etc/zabbix/ /etc/zabbix/
  6. restart zabbix-agent daemon.
  7. import "zbx_templates/Template LXC CT.xml" and "zbx_templates/Template LXC Node.xml" into your templates.
  8. apply template "Template LXC Node" to LXC hardware node (otherwise known as host system).
  9. enjoy.


If you have problem with import template "Template LXC Node.xml", try use template without discovery rule and add it later manually.