zabbix-tools / go-zabbix

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

Disabling Host in Zabbix #30

Open rajuyce opened 4 years ago

rajuyce commented 4 years ago

Hi,

Could you please provide example code for disabling Zabbix monitoring for a particular host by passing hostname...

moudsen commented 2 years ago

The current library is "read only" mode (get.) only. I'm currently working on the implementation of .CREATE but also will have .UPDATE ready shortly after that. The latter will allow you to update objects (and will provide example how to disable monitoring for a specific host. Basically the only update you would need to make is to put ENABLED to FALSE for that particular host. To be continued ...