Hello,
I have come across an issue that I am attempting to figure out how to resolve without requiring tedious work. I have access points at multiple different locations that have the same naming convention. For example, at Site A, I have an access point named Unit 1101; at Site B, I have a different access point named Unit 1101.
I had no issues creating the hosts at Site A using a simple discovery rule and discovery action. However, the issue I am experiencing now that I am deploying Zabbix monitoring at Site B is that the discovery actions are creating the host and naming it Unit 1101_2. The solution that I would like to implement would be to create the hosts with the name as a combination of the site name and the host name. For example, the discovery rule would create a host for Unit 1101 at Site A with the name "Site A" + "Unit 1101". Similarly, Unit 1101 when created as a host would be named "Site B" + "Unit 1101".
Is there a way to use the Zabbix API to achieve this so that I can avoid the tedious, manual work of renaming the APs? Thank you for your help and I hope you have a great day.
I have come across an issue that I am attempting to figure out how to resolve without requiring tedious work. I have access points at multiple different locations that have the same naming convention. For example, at Site A, I have an access point named Unit 1101; at Site B, I have a different access point named Unit 1101.
I had no issues creating the hosts at Site A using a simple discovery rule and discovery action. However, the issue I am experiencing now that I am deploying Zabbix monitoring at Site B is that the discovery actions are creating the host and naming it Unit 1101_2. The solution that I would like to implement would be to create the hosts with the name as a combination of the site name and the host name. For example, the discovery rule would create a host for Unit 1101 at Site A with the name "Site A" + "Unit 1101". Similarly, Unit 1101 when created as a host would be named "Site B" + "Unit 1101".
Is there a way to use the Zabbix API to achieve this so that I can avoid the tedious, manual work of renaming the APs? Thank you for your help and I hope you have a great day.