Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables problem with Zabbix 5 - LXC #5

Open
namsohj opened this issue Dec 22, 2020 · 1 comment
Open

Variables problem with Zabbix 5 - LXC #5

namsohj opened this issue Dec 22, 2020 · 1 comment

Comments

@namsohj
Copy link

namsohj commented Dec 22, 2020

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
Copy link

ostefek99 commented Jan 12, 2021

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:

  • Linux CPU by Zabbix agent
  • Linux memory by Zabbix agent

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants