jjmartres / Zabbix

A great collection of Zabbix scripts and templates
GNU General Public License v2.0
873 stars 585 forks source link

Fortinet template - Error while importing #138

Open e9169 opened 6 years ago

e9169 commented 6 years ago

Hi,

Importing this template (ZBX-FORTINET-ENVMON) https://github.com/jjmartres/Zabbix/tree/master/zbx-templates/zbx-fortinet/zbx-fortinet-envmon

I get the following error:

Invalid tag "/zabbix_export/graphs/graph(1)/ymin_item_1": unexpected tag "host".

Any clue, please? I have followed the instructions strictly.

Thanks!

veracosta commented 6 years ago

ymin_item_1 should not include sub elements unless ymin_type_1 is 2.

so change following lines...

            <ymin_item_1>
                <host>ZBX-FORTINET-ENVMON</host>
                <key>fgSysDiskCapacity</key>
            </ymin_item_1>

to the following.

            <ymin_item_1/>
e9169 commented 6 years ago

Hi. When I do what you say, I get this error:

Invalid tag "/zabbix_export/graphs/graph(1)": unexpected tag "ymin_type_114".

My template XML looks like this after the change:

1 2 ZBX-FORTINET-ENVMON fgSysDiskCapacity

Thanks.

e9169 commented 6 years ago

ok, I got it, I made a mistake and wrote ymint_type_1 instead of ymin_item_1. Anyway, now the import process is complaining about value maps. However, I don't know what to map since the are not instructions on the template documentation...