Relkci / Zabbix_Bandwidth-vnstat

Zabbix Template - Get Daily, Monthly and Alltime Bandwidth Information /w Triggers
GNU General Public License v3.0
11 stars 3 forks source link

Template Import Issue #2

Open koraykutanoglu opened 2 years ago

koraykutanoglu commented 2 years ago

Hi, First of all this repo is awesome! I'm having trouble importing the template. I am using Zabbix 5.0 LTS version. When I import your yaml file, I get the following error.

image

While trying to import the xml file, I get an error as follows.

image

I want to be able to monitor bandwidth on my server and this repo seems to be the best I could find. When I examined your yaml file, I saw that you edited it according to version 5.4. I fixed this to 5.0. However, there was no change. I guess a separate yaml file is required for version 5.0. How can I solve the problem?

Relkci commented 2 years ago

5.4 templates added a Unique ID per object in the template. 5.0 doesn't expect the UUID attribute and fails import when it finds them.

You could try removing all of the UUID attributes in the XML and it might import ok. Technically speaking the 5.4 templates aren't intended to be backwards compatible, but... it might work. I don't believe the template uses any new features from 5.4 that weren't in 5.0.

Template spec change: https://www.zabbix.com/documentation/current/en/manual/installation/template_changes

I don't have a 5.0 instance to test on, but removing the UUID tags might be all that's necessary to convert it to 5.0 compatibility.

Good luck, let me know if that works; if not I can do some digging.

Edit: Actually, the spec change isn't clear. It mentions the templates themselves have new UUIDs. You may only need to remove the UUID tag for the template, not for the objects themselves. Maybe try that first. I haven't seen a 5.0 template in awhile to remember if all objects originally had UUIDs or not.

koraykutanoglu commented 2 years ago

Unfortunately it didn't work as you said. Although I removed the uuid values, this time I got another error.

image

Then I removed the dashboard and tried again and got an error again.

image

If I continue like this, it seems like nothing will be left :)

In the link below, a user requested an XML file for 5.0 and you told him to check the github repo. Did you add XML for 5.0 and then remove it?

https://share.zabbix.com/operating-systems/linux/banwidth-monitoring-with-vnstat-includes-triggers

another solution is to upgrade zabbix version 5.0 to 5.4. However, when I make a general review, this does not seem like a healthy procedure to me. Additionally it is 5.0 LTS. Its stability is interesting. I don't want to deal with various issues in 5.4 and all agents will need to be updated after the upgrade. This creates a workload for me. I would like to know your opinion on this matter.

But a solution for 5.0 is my preferred method.

koraykutanoglu commented 2 years ago

is there any progress? @Relkci