Closed JonAnder83 closed 3 years ago
Thanks for your reply @JonAnder83.
The linked templates are all Out-of-box Templates (OOTB) provided by the Zabbix team. So, their names are standard after initial installation. Changing OOTB template names before importing Asus template might cause this dependency issue you experienced. Also, if you upgraded your Zabbix, any new OOTB template will not be updated unless you manually do it.
Please check Zabbix OOTB templates documentation for more information.
As for "vm.memory.size[webui,total]" key, it is dependent of "vm.memory.size[total]" key. Somehow it must have gotten lost while exporting the template. I'm looking at this issue right now.
Thanks again for your feedback.
Ohh. I see now. As mentioned above, the provided "vm.memory.size[webui,total]" key depends on "Total Memory" item, which is provided by "Template Module Linux memory by Zabbix agent".
Since you had different OOTB template names in your Zabbix, I figure "Memory WebUI Total" item could not find "Total memory" master item. By re-linking your templates to the correct name, as you already did, should resolve that issue. You could also re-configure "Memory WebUI Total" master item, if you changed item names as well.
Hi. Thanks for the reply! Just a heads up because my setup is as vanilla as it gets: I deployed 5.2.5 from zero and built it from the ground up: It's a new deployment: a couple weeks old on my home lab environment. I don't usually deploy zabbix on arch. On my work I usually deploy on top of ubuntu or something alike but this time I was deploying on arch, which is going to be pretty OOTB. I'm mentioning this because you stated that the templates are not updated when you bump zabbix versions (correct me if i'm wrong here) but people deploying newer versions of zabbix could run into the same trouble as I do. What I did to "fix it" aside from renaming the linked templates on the xml file before importing, was to create a new key on my zabbix "Linux memory by Zabbix agent" template: Clonning the default "Total memory" item, I modified the key to "vm.memory.size[webui,total]" Now, I can import the template and also configure it. The only item that is still not receiving data is "Memory WebUI Used" However, Memory WebUI Free is painting me graphs and receiving data.
I don't do very heavy usage of zabbix: I usually import templates and configure a couple dashboards here and there so, I'm not 100% sure if I fixed it or if this would be the way to do it.
Thanks a lot for the heads up Jon.
Checking Zabbix Git, I saw there was a big change in naming scheme of templates, and that doesn't seem to be mentioned in Zabbix's "What's new" documentation page.
Prior to version 5.0, OOTB templates had "Template" term as a prefix in the name.
<templates>
<template>
<template>Template Module ICMP Ping</template>
<name>Template Module ICMP Ping</name>
With version 5.2, it seems that the prefix was ditched and now uses a .yaml file format, instead of .xml.
templates:
-
template: 'ICMP Ping'
name: 'ICMP Ping'
Since I created this template before using Zabbix 5.2, I did not foresee that change. But, with your help I was a little unrest and could see the changes. Thank you.
As for item "Memory WebUI Used", it uses the following calculated Formula:
last("vm.memory.size[webui,total]")-last("vm.memory.size[free]")
<item>
<name>Memory WebUI Used</name>
<type>CALCULATED</type>
<key>vm.memory.size[webui,used]</key>
<history>7d</history>
<units>B</units>
<params>last("vm.memory.size[webui,total]")-last("vm.memory.size[free]")</params>
<description>Used memory in Bytes. Webui used = Webui total - Webui free</description>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
</item>
I'm glad you could "patch" the template to your setup. In the near future I'll try to update those templates names. Please, keep watching.
I really appreciate your feedback and hope to see more of your insights. Best regards.
Sure, I will keep an eye on your work. It's pretty cool.
Regards!
Hi! First of all: Thanks for your work! I'm really looking forward to make this work on my RT-AC68U.
I'm running into a couple of issues.
First of all, if I try to import the template as is, zabbix does not recognize any of the linked templates unless I rename them:
Template App SSH Service -> SSH Service Template Module ICMP Ping -> ICMP Ping Template Module Linux block devices by Zabbix agent -> Linux block devices by Zabbix agent Template Module Linux filesystems by Zabbix agent -> Linux filesystems by Zabbix agent Template Module Linux memory by Zabbix agent -> Linux memory by Zabbix agent Template Module Linux network interfaces by Zabbix agent -> Linux network interfaces by Zabbix agent Template Module Zabbix agent -> Zabbix agent
Then, I solve the template dependency issues, however, a new issue arises:
vm.memory.size[webui,total]
Key is not recognised.
However, these are the available items for "Linux memory by Zabbix agent" template:
vm.memory.size[available] vm.memory.size[pavailable] system.swap.size[,free] system.swap.size[,pfree] vm.memory.utilization vm.memory.size[total] system.swap.size[,total]
I'm on Zabbix 5.2.5, on arch linux.
I can help troubleshoot and fix this if you ask me to and suggest a way to do so,
Thanks!