zabbix-tools / go-zabbix

Go bindings for the Zabbix API
GNU General Public License v2.0
106 stars 70 forks source link

Supporting hostinterface.get API #34

Open user340 opened 4 years ago

user340 commented 4 years ago

Hello,

I added new code to supporting hostinterface.get . This feature may be needed by other users (https://github.com/cavaliercoder/go-zabbix/issues/32). I've tested with Zabbix 4.0.9. It works fine.

Some issues is avalable:

  1. type property can be 0. But according to Zabbix official API reference, it only be 1~4. I have no idea.
  2. hostinterface object has "bulk" property since Zabbix 3.0. It is not implemented.

Thank you,