Skip to content

Issue syncing to/with multiple Zabbix servers #90

@gryan337

Description

@gryan337

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions