diasdmhub / Asus_Merlin_Zabbix_Template

Template for Asus WRT router with Merlin firmware
GNU General Public License v3.0
9 stars 2 forks source link

Won't import into 7.0.0alpha7 #8

Closed elyograg closed 11 months ago

elyograg commented 11 months ago

image

This is what happens when I try to import the latest template into the latest 7.0.0 alpha release.

diasdmhub commented 11 months ago

The standard template modules shown in your picture are not available in Zabbix since version 6.4. It seems that you are trying to import an older version of the template. Did you download the latest template version?

The latest version has no linked templates. So, this error should not occur. According to the latest release notes:

Due to OOTB template inconsistencies between Zabbix versions, templates for generic Linux modules have been removed. Now, this template will focus only on specific Asus Merlin Router items.

For generic Linux items, it is recommended to link the OOTB Linux template which offers multiple items for monitoring, including CPU, memory, disk and bandwidth information.

Also, Zabbix version 7 is not stable and I cannot supported it yet.

If you must use an older version of this template, you can try downloading the older OOTB template modules from Zabbix Git.

elyograg commented 11 months ago

I did not see that 647 version. I opened Templates and got the v12 template.

Now it imported, but it says it is by zabbix agent ... I expected SNMP. I have no idea how to get a zabbix agent on my router.

elyograg commented 11 months ago

Today I added a USB flash drive. Installed Download Master so ipkg works. I could not find a zabbix-agent package.

diasdmhub commented 11 months ago

This template was created to monitor specific Asus Merlin Router items.

As described in the Readme, there are some requirements:

  • Asus WRT Router with Merlin firmware
  • Entware installed
  • Zabbix agent installed
elyograg commented 11 months ago

Progress! Thank you for the pointer.

I had never seen amtm or entware before. I have an ROG GT-AX6000 router, it is running merlin. I've only had it for a few days.

Installed entware and the zabbix agent. Got it correctly configured with my PSK encryption. Some of the items show up as not supported.

image

All but four of the items there show Cannot open file: [2] No such file or directory as the info. The four that are different are:

[Memory WebUI Total] [Memory WebUI Used] [Temperature Wireless 2.4GHz] [Temperature Wireless 5.0GHz]

Those are:

Cannot evaluate function: item "/orthanc.elyograg.org/vm.memory.size[total]" does not exist at "last(//vm.memory.size[total])". Cannot evaluate function: item "/orthanc.elyograg.org/vm.memory.size[webui,total]" is not supported at "last(//vm.memory.size[webui,total])-last(//vm.memory.size[free])". Value of type "string" is not suitable for value type "Numeric (float)". Value "wl: wl driver adapter not found" Value of type "string" is not suitable for value type "Numeric (float)". Value "wl: Not up"

The third one isn't really surprising ... I have the 2.4Ghz radio disabled. I've got another router in AP mode handling 2.4Ghz for IoT stuff and things that can't handle 5Gghz/WPA3, on another subnet behind a layer 3 switch.

diasdmhub commented 11 months ago

Understanding how Zabbix operates is good for effective device monitoring and data interpretation. Which version of Zabbix Agent are you running? (check it by running zabbix_agentd -V in your router)

Items with "CSV" in their names are designed to gather raw data from CSV files within the router. Please note that these files are only present if you are using a service with a matching name. For instance, the Conmon CSV item captures raw CSV data from the Conmon service.

These raw items are associated with dependent items. If the parent item is not supported, the dependent items will also be unsupported.

Currently, only two services are monitored by reading the CSV files: "Conmon" and "NTPMerlin." Descriptions for both services are provided within the respective item settings.

When Zabbix reports No such file or directory found, it likely means that. To resolve this issue, first, ensure that the service is correctly installed. Once confirmed, check that the location for statistics and configuration is within the JFFS partition, which is the default location. If you do not wish to use those services, simply disable the corresponding items in your host.

Regarding the item Memory WebUI Total (error message vm.memory.size[total]" does not exist at "last(//vm.memory.size[total])"), it is marked as unsupported, probably because you haven't linked your device to the standard Linux by Zabbix Agent template. You can quickly resolve the issue by linking your device to the Linux by Zabbix Agent template, which will add the missing vm.memory.size[total] item. I overlooked this specific item dependency when I removed dependencies from other templates. I'll address this later.

Finally, If you don't use the wireless module temperature items, you can disable them in your host configuration.

diasdmhub commented 11 months ago

I added a new version with some changes that should help improving the Memory WebUI item dependencies and service descriptions. If you could test it out, check the latest "pre-release".

You can just update the template.

elyograg commented 11 months ago
elyograg@orthanc:/tmp/home/root# zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 6.2.3
Revision 98ee88fc19d 21 September 2022

Copyright (C) 2022 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 3.0.10 1 Aug 2023
Running with OpenSSL 3.0.10 1 Aug 2023

Thank you for the info. Now I understand things a lot better than I did.

I've installed conmon and ntpmerlin. that cleared up the conmon stuff, but not the ntpmerlin, so I disabled those items.

Installed the 648 pre-release of the template.

Adding the Linux template showed more items not supported, mostly interfaces ... I disabled those items.

The jackyaz github link in the ? hover items has the </a> tag misplaced. Took me a few minutes to figure out why it wouldn't load the URL.