Skip to content
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

[RFE] : updating host (like inventory_mode or others fields) #157

Open
arrfab opened this issue Jan 5, 2023 · 0 comments
Open

[RFE] : updating host (like inventory_mode or others fields) #157

arrfab opened this issue Jan 5, 2023 · 0 comments

Comments

@arrfab
Copy link
Contributor

arrfab commented Jan 5, 2023

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 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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant