Difference between revisions of "Zabbix template upgrade"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/444292-unable-to-update-existing-templates-zabbix-6-0-4 ``` Hi! Same problem here (upgrade from 5.4 to 6.0)....")
 
 
Line 2: Line 2:
  
 
```
 
```
Hi!
+
As mentioned above upgrading from 5.x to 6.x template yaml they do not link the submodules anymore so just Unlink submodules from existing Zabbix agent active , in our case the below
Same problem here (upgrade from 5.4 to 6.0).
+
Linux CPU by Zabbix agent active
 +
Linux filesystems by Zabbix agent active
 +
Linux generic by Zabbix agent active
 +
Linux memory by Zabbix agent active
 +
Linux network interfaces by Zabbix agent active
  
Here is what I did (but I do not recommend on production system since I have not sufficient history to understand if I do not have any regression or item loss) and this is far from being a clean solution:
+
And then import 6.x Zabbix agent active template and it should keep working.
 +
https://raw.githubusercontent.com/za...ux_active.yaml (https://github.com/zabbix/zabbix/blo...ux_active.yaml)
 +
I think with the new setup moving forward it should be less of a mess upgrading because of using UUIDs and not doing sub modules.​
 +
 
 +
This project can be useful too though to monitor you changes. https://github.com/jeremybusk/zabbix...-export-import
 +
```
 +
 
 +
You do NOT need to do all this but you could
 +
```
 
1/ Unlink (but not clear sub-module templates from "Linux by zabbix Agent Active");
 
1/ Unlink (but not clear sub-module templates from "Linux by zabbix Agent Active");
 
2/ delete all the old templates (sub-module from Linux + "Linux by zabbix Agent Active" + "Zabbix agent active");
 
2/ delete all the old templates (sub-module from Linux + "Linux by zabbix Agent Active" + "Zabbix agent active");
Line 11: Line 23:
 
4/ Relink everything.
 
4/ Relink everything.
  
You may also want to use the https://github.com/southbridgeio/zab...-export-import project to regularly export in a GIT repo templates and macros to track any changes.
 
 
I am really a big fan of the Zabbix solution but I do not understand why templates have always been so painful to manage (the relatively new diff import feature goes in the right direction though)...
 
 
Good luck!
 
 
```
 
```

Latest revision as of 18:10, 24 July 2023

https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/444292-unable-to-update-existing-templates-zabbix-6-0-4

As mentioned above upgrading from 5.x to 6.x template yaml they do not link the submodules anymore so just Unlink submodules from existing Zabbix agent active , in our case the below
Linux CPU by Zabbix agent active
Linux filesystems by Zabbix agent active
Linux generic by Zabbix agent active
Linux memory by Zabbix agent active
Linux network interfaces by Zabbix agent active

And then import 6.x Zabbix agent active template and it should keep working.
https://raw.githubusercontent.com/za...ux_active.yaml (https://github.com/zabbix/zabbix/blo...ux_active.yaml)
I think with the new setup moving forward it should be less of a mess upgrading because of using UUIDs and not doing sub modules.​

This project can be useful too though to monitor you changes. https://github.com/jeremybusk/zabbix...-export-import

You do NOT need to do all this but you could

1/ Unlink (but not clear sub-module templates from "Linux by zabbix Agent Active");
2/ delete all the old templates (sub-module from Linux + "Linux by zabbix Agent Active" + "Zabbix agent active");
3/ import the 6.0 version of "Linux by zabbix Agent Active" and "Zabbix agent active".
4/ Relink everything.