You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a already the update_host_inventory function which exists and permits to easily update anything in inventory for a host as long as we know the key and so value to update.
Example : update_host_inventory <host_id> location_lat 54.1
So can a update_host function be plumbed to just allow to first modify host in a key/value pair (like for update_host_inventory) and so updating (for example) inventory_mode ?
I don't mind writing my own other script for that first (I had to do that for the PSK change ) but it would be better if it was all managed by zabbix-cli
Thanks a lot for zabbix-cli : it helps a lot automating a server fleet with ansible :)
The text was updated successfully, but these errors were encountered:
Hi
There is a already the
update_host_inventory
function which exists and permits to easily update anything in inventory for a host as long as we know the key and so value to update.Example :
update_host_inventory <host_id> location_lat 54.1
But the problem is that by default, host object itself is created in zabbix with
inventory_mode
set to-1
(disabled , see https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object)So can a
update_host
function be plumbed to just allow to first modify host in a key/value pair (like forupdate_host_inventory
) and so updating (for example) inventory_mode ?I don't mind writing my own other script for that first (I had to do that for the PSK change ) but it would be better if it was all managed by zabbix-cli
Thanks a lot for zabbix-cli : it helps a lot automating a server fleet with ansible :)
The text was updated successfully, but these errors were encountered: