Template file for zabbix 5.0
tolgatinaztepe opened this issue · comments
Hi,
I am trying to use this template with zabbix 5.0.10 however I fail to upload the template file through zabbix frontend. I assume this is because zabbix 5.0 requires different syntax than zabbix 3.4.
Do you have the template file for zabbix 5.0?
Here is the error I get during the upload.
Invalid tag "/zabbix_export/templates/template(1)/discovery_rules/discovery_rule(1)/graph_prototypes/graph_prototype(1)/graph_items/graph_item(1)/type": a character string is expected.
thanks in advance
Similar issue when trying to export the Redis template in Zabbix:
Invalid tag "type": unexpected constant value "7"
same thing
Undefined offset: 7 [conf.import.php:89 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → C42ImportConverter->convert() → C42ImportConverter->convertFormat() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() in include/classes/import/converters/C42ImportConverter.php:165]
Undefined offset: 7 [conf.import.php:89 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → C42ImportConverter->convert() → C42ImportConverter->convertFormat() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() in include/classes/import/converters/C42ImportConverter.php:165]
Undefined offset: 7 [conf.import.php:89 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → C42ImportConverter->convert() → C42ImportConverter->convertFormat() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() → C42ImportConverter->convertValueToConstant() in include/classes/import/converters/C42ImportConverter.php:165]
Invalid tag "/zabbix_export/templates/template(1)/discovery_rules/discovery_rule(1)/graph_prototypes/graph_prototype(1)/graph_items/graph_item(1)/type": a character string is expected.
diff -u zbx_export_templates.xml{.orig,}
--- zbx_export_templates.xml.orig 2022-01-30 02:19:55.000000000 +0300
+++ zbx_export_templates.xml 2022-01-30 02:22:30.000000000 +0300
@@ -1838,7 +1838,7 @@
<color>6666FF</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
- <type>7</type>
+ <type>0</type>
<item>
<host>Template_App_Redis</host>
<key>redis.stat.get[total_commands_processed,{#HOST},{#PORT}]</key>
@@ -1870,7 +1870,7 @@
<color>00BB00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
- <type>7</type>
+ <type>0</type>
<item>
<host>Template_App_Redis</host>
<key>redis.stat.get[connected_clients,{#HOST},{#PORT}]</key>
@@ -1934,7 +1934,7 @@
<color>EE0000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
- <type>7</type>
+ <type>0</type>
<item>
<host>Template_App_Redis</host>
<key>redis.stat.get[total_connections_received,{#HOST},{#PORT}]</key>