I have a netbox setup with nbxSync (version 1.0.3) where I am trying to sync to multiple Zabbix servers - a production Zabbix and a backup Zabbix. I have configured both Zabbix servers in netbox along with the required host groups and a bunch of agent interfaces, templates to link, host tags, etc. I set up all of this into a Zabbix configuration group. The Zabbix configuration group works fine, but when I go to "Sync Zabbix" from the device in netbox it fails on the first Zabbix server with an error of:
HostSync creation failed: Application error. Invalid parameter "/1/groups/3": object does not exist, or you have no permissions to it
I haven't dug in further yet to the root cause, but this error does not occur if I only have one Zabbix server in the Zabbix configuration group in netbox, along with just that one server's templates, interfaces, etc.
That said, I can confirm that nbxSync is creating the Hostgroups if they do not exist in both Zabbix server instances. The issue appears to be the linking to the Zabbix host object. Is it possible that nbxSync (HostSync) is assigning the hostgroup IDs from the wrong Zabbix server? Meaning, if I have:
Zabbix server1 with hostgroupID 5
Zabbix server2 with hostgroupID 6
...and HostSync is trying to create a host on Zabbix server1 is it mistakenly using hostgroupID 6 from the other Zabbix server?
I'll look further when I get some additional time, but wanted to push this issue to your queue in the meantime.
I have a netbox setup with nbxSync (version 1.0.3) where I am trying to sync to multiple Zabbix servers - a production Zabbix and a backup Zabbix. I have configured both Zabbix servers in netbox along with the required host groups and a bunch of agent interfaces, templates to link, host tags, etc. I set up all of this into a Zabbix configuration group. The Zabbix configuration group works fine, but when I go to "Sync Zabbix" from the device in netbox it fails on the first Zabbix server with an error of:
HostSync creation failed: Application error. Invalid parameter "/1/groups/3": object does not exist, or you have no permissions to itI haven't dug in further yet to the root cause, but this error does not occur if I only have one Zabbix server in the Zabbix configuration group in netbox, along with just that one server's templates, interfaces, etc.
That said, I can confirm that nbxSync is creating the Hostgroups if they do not exist in both Zabbix server instances. The issue appears to be the linking to the Zabbix host object. Is it possible that nbxSync (HostSync) is assigning the hostgroup IDs from the wrong Zabbix server? Meaning, if I have:
Zabbix server1 with hostgroupID 5
Zabbix server2 with hostgroupID 6
...and HostSync is trying to create a host on Zabbix server1 is it mistakenly using hostgroupID 6 from the other Zabbix server?
I'll look further when I get some additional time, but wanted to push this issue to your queue in the meantime.