Project

General

Profile

Actions

Bug #13128

open

Zabbix Agent 6: HA Server Setup

Added by Christian Bönning almost 2 years ago. Updated over 1 year ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Zabbix
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

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

Actions #1

Updated by Christian Bönning almost 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.

Actions #4

Updated by Kris Phillips over 1 year 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

Actions

Also available in: Atom PDF