Hi all,
I am trying to mass update my servers with location coordinates.
Now I have the script to get the location info.
But now I need to inject this information in Zabbix with the API.
Of course I also need to set inventory information to manual.
I did find that I can change database directly ( SELECT inventory_mode,location,location_lat,location_lon FROM host_inventory ) and might be needed some times (if anyone disagree please send me a PM, do not pollute this thread)
But does anyone know the API way?
Also getting that information by API is still a mystery for me, and yes I did read the documentation.
Please provide an example...
Thanks!
I am trying to mass update my servers with location coordinates.
Now I have the script to get the location info.
But now I need to inject this information in Zabbix with the API.
Of course I also need to set inventory information to manual.
I did find that I can change database directly ( SELECT inventory_mode,location,location_lat,location_lon FROM host_inventory ) and might be needed some times (if anyone disagree please send me a PM, do not pollute this thread)
But does anyone know the API way?
Also getting that information by API is still a mystery for me, and yes I did read the documentation.
Please provide an example...
Thanks!
Comment