kvaps / zabbix-linux-container-template

Zabbix template for LXC container
GNU General Public License v2.0
72 stars 34 forks source link

Variables problem with Zabbix 5 - LXC #5

Open namsohj opened 3 years ago

namsohj commented 3 years ago

In Zabbix 5 you cannot edit the variables, and the template you have there does not work when importing, what alternative could you take?

"Cannot import template "Template Linux Container", linked template "Template App Zabbix Agent" does not exist."

How to can Fix it?

vm.memory.size
system.swap.size
system.cpu.load
ostefek99 commented 3 years ago

You will have to do it by hand.

Clone template Linux by Zabbix agent -> Linux LXC by Zabbix agent (do a "Full clone") which has linked several templates. Those that are any interest to you will be:

Let's clone (do a "Full clone") both above and name them Linux LXC CPU by Zabbix agent and Linux LXC memory by Zabbix agent. Go into each template and look for "Items" in the header row, it should say some number next to the text (it's 17 items in CPU template for me). Edit keys as described in the readme here.

Now edit the new Linux LXC by Zabbix agent and unlink ("Unlink and clear") Linux CPU by Zabbix agent/Linux memory by Zabbix agent and link newly created ones Linux LXC CPU by Zabbix agent/Linux LXC memory by Zabbix agent.

Little bit a manual work but that should be it.