-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0 support #1
Comments
Trends fixed in monitoringartist/go-zabbix@7f87a63 - please test again. Yes, 4.4 is supported at the moment, because template model was created from 4.4 template. In theory branch and template model for 4.0 can be created in https://github.com/monitoringartist/go-zabbix/ and then just version detection must be implemented here. Will you be able to create 4.0 model? Fixed more string items. Tested on official templates:
|
@jangaraj Are you planning to build the support for versions 4.0 and/or 4.2? I can take a look at weekend, and start contributing. Thanks! |
Yes. It will nice to have support for 4.0, because it is LTS release. 4.2 has reached end of full support - but probably it uses the same template model as 4.0. Zabbix XML ->YAML -> XML conversion doesn't produce input XML, because golang xml lib encodes some characters differently (see golang/go#12400), .e.g.
vs
|
Hi @jangaraj, I have some other fields from 4.0 which goes missing on the conversion, <status>0</status>
<snmp_community/>
<snmp_oid/>
<allowed_hosts/>
<units/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<inventory_link>0</inventory_link>
<logtimefmt/>
<jmx_endpoint/>
<timeout>3s</timeout>
<url/>
<query_fields/>
<posts/>
<status_codes>200</status_codes>
<follow_redirects>1</follow_redirects>
<post_type>0</post_type>
<http_proxy/>
<headers/>
<retrieve_mode>0</retrieve_mode>
<request_method>0</request_method>
<output_format>0</output_format>
< allow_traps>0</allow_traps>
<ssl_cert_file/>
<ssl_key_file/>
<ssl_key_password/>
<verify_peer>0</verify_peer>
<verify_host>0</verify_host> Application prototypes are also missing, <application_prototypes>
<application_prototype>
<name>APP NAME</name>
</application_prototype>
</application_prototypes> And I also see an extra generated "retrieve mode" on the output side, which I am not sure It should or not be there, or is it sorted out.
|
Please compare v44 (it is better model, but it's still not completed) with v40 - https://github.com/monitoringartist/go-zabbix/compare/v40...v44?expand=1 and create PR please. |
Hi @jangaraj,
I was testing your project, and there is a parsing issue with the trends storage period values.
See,
Zabbix Version: 4.0.5
Or you can also write down in the README.md that the project only support Zabbix 4.4 upwards, which I realize after reading the code.
The text was updated successfully, but these errors were encountered: