Skip to content

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

Open

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions