updateNamesFromInventory - Update host names from inventory field
updateNamesFromInventory
This script has been developed to help fast Zabbix deploying, updating names from inventory field.
Description
Zabbix has a useful network discovery feature, but if you have to manually rename the discovered hosts, that would take too much time on a large environment. This script tries to solve this issue. It will copy the host name from inventory to the actual host name. You will want to configure automatic inventory for all hosts in you Discovery actions.
All interaction with Zabbix is made through PyZabbix. Sometimes hosts have multiple interfaces, like servers, routers, firewalls, and are discovered more than once, and to save resources, only one of them should be monitored. You can configure a list of groups which hosts should be disabled if they have the same name.