Lelik13a / Zabbix-LXC

Zabbix LXC templates
23 stars 15 forks source link

LXC_CT Memory used, CPU Use and others "Unsupported item keys" #4

Closed rluisr closed 7 years ago

rluisr commented 7 years ago

Setup

LXC Server

  1. copy lxcdiscover.pl, lxc-attach.sh, lxc-cgroup.sh, and lxc-info.sh 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/lxcdiscover.pl /etc/zabbix/lxc-attach.sh /etc/zabbix/lxc-cgroup.sh /etc/zabbix/lxc-info.sh
  6. restart zabbix-agent daemon.

Zabbix Server

  1. import "zbx_templates/Template LXC CT.xml" and "zbx_templates/Template LXC Node.xml"
  2. apply template "Template LXC Node" to LXC Server

LXC Container

  1. Apply template "Template_LXC_CT"

Version

LXC Server : Zabbix_agent v3.2.1 Zabbix Server : Zabbix_server v3.2.1 LXC Container : Zabbix_agent v3.2.1

But LXC Container -> Memory used, CPU Use and other item says "Unsupported item keys". What Can I solve this problem?

rluisr commented 7 years ago

Sorry I solved this issue. Didn't install sudo