Bug #13128
openZabbix Agent 6: HA Server Setup
0%
Description
It seems not to be possible to setup Zabbix Agent 6.0 on pfSense 2.6 to talk to a HA Zabbix Server Installation.
Zabbix 6.0 added Support for native HA (https://www.zabbix.com/whats_new_6_0#ha_cluster) with 2 or more Nodes. In our case we‘re running a 2 Node Cluster for Zabbix Server which would have to be given in the Format „zabbix-1.example.com;zabbix-2.example.com“ as „Server“ in Agent Config. When putting this into Config an Error is shown even though the Config would be perfectly valid.
As per the current situation it‘s only possible to add the currently active Zabbix Server Node as „Server“ which isn‘t really helpful as in case the Server runs a failover Config needs to be adjusted manually.
It‘d be great to have this Option to enable HA on the agent.
!pfSense 2.6 Zabbix Agent 6.0 HA.png!
Files
Updated by Christian Bönning over 2 years ago
The "Correct Place" in Zabbix Agent 6.0 to configure would be "ServerActive" (https://github.com/zabbix/zabbix/blob/master/conf/zabbix_agentd.conf#L142-L158), but it comes up with the exact same error message when trying to put in HA Cluster Configuration.
Updated by Kris Phillips about 2 years ago
Updated by Kris Phillips about 2 years ago
Updated by Kris Phillips about 2 years ago
- Status changed from New to Confirmed
I see the issue here. It appears that this feature for HA uses semi-colons for HA and uses Commas for multiple servers configurations. Previously semicolons were not valid, but now they are in Zabbix 6. This is confirmed. See above screenshots with working configs with commas and attached screenshot with semicolons. Looks like we need to update the sanity check here to allow for both commas and semi-colons.
Quote from documentation here:
Example for Zabbix proxy:
ServerActive=127.0.0.1:10051
Example for multiple servers:
ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
Example for high availability:
ServerActive=zabbix.cluster.node1;zabbix.cluster.node2:20051;zabbix.cluster.node3
Example for high availability with two clusters and one server:
ServerActive=zabbix.cluster.node1;zabbix.cluster.node2:20051,zabbix.cluster2.node1;zabbix.cluster2.node2,zabbix.domain
Updated by Kris Phillips about 2 years ago
Attaching screenshot