anapsix / zabbix-haproxy

HAProxy Zabbix Discovery and Template
170 stars 77 forks source link

Zabbix Template Import error #13

Closed martinvandiemen closed 8 years ago

martinvandiemen commented 8 years ago

Importing the "haproxy_zbx_template.xml" template into Zabbix (3.0.1) results in the following error: Invalid XML tag "/zabbix_export/templates/template(1)/discovery_rules/discovery_rule(1)": the tag "filter" is missing.

Would be great if this template could also bee used in Zabbix 3.0.

Thanks!

martinvandiemen commented 8 years ago

Filters were in a comment. Removed comment, solved.

anapsix commented 8 years ago

Glad to hear it works with Zabbix 3.0

afkpaul commented 7 years ago

Migration from Zabbix 3.4 to Zabbix 3.2 -->

echo "#!/bin/bash replace "3.4" "3.2" -- $1 replace "" "0" -- $1 replace "" "0" -- $1 replace "" "1" -- $1 replace "" "0" -- $1 grep preprocessing $1 " > a

./a template.xml

if or tags appear, please remove them from the .xml (and remove content inside the tags) Be aware to manually add on Use custom multiplier and Store as values from these tags