I am using the Zabbix API to create hosts in Zabbix from Connectwise Control. I am wanting to make the hosts Hostname value it's Mac Address to ensure each one is unique. But as Zabbix does not allow : in the Hostname field, and I have not been able to figure out a way to manipulate the MAC address value from Connectwise Control to remove the : or replace with something else, I am trying to create the host via the API using the Inventory.macaddress_a field with the mac address like XX:XX:XX:XX:XX:XX and then replace the : with _ and update the hostname with the new value like XX_XX_XX_XX_XX_XX but have been unsuccessful.
Does anyone have any insight into how I may be able to accomplish this? Any help would be appreciated. Thanks in advance!
Does anyone have any insight into how I may be able to accomplish this? Any help would be appreciated. Thanks in advance!