opnsense / opnsense/plugins

net-mgmt/zabbix-agent: Can't make use of HA in Zabbix agent

Open
#4,284 2 comments 0 reactions 1 assignee View on GitHub

@fraenki is already working on this.

Since Oct 8, 2024.

feature
Dominant language
PHP
Stars
1.2k
Forks
863
Avg merge
2d 6h
Merged PRs (30d)
10

Description

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
os-zabbix7-agent version 1.14 on OPNsense 24.7.5_3-amd64

Can't make use of clusters in Zabbix agent, when adding active check servers separated by semicolon, we're getting this error:

Please provide valid active check receivers, i.e. 10.0.0.1:10051, zabbix.example.com or [::1]:30051.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Zabbix Features' (/ui/zabbixagent#tab_zabbixagent-settings-features)
  2. Click on 'Active Check Servers'
  3. Add two servers separated by semicolon (new feature to make use of a cluster of proxy - this is not the same as using a comma or a colon)
  4. See error

Expected behavior
Taking the configuration into account

Screenshots
chrome_Or38W6eX1F

Relevant log files
If applicable, information from log files supporting your claim.

Additional context
Zabbix explanations on default config file :

### Option: ServerActive
#       Zabbix server/proxy address or cluster configuration to get active checks from.
#       Server/proxy address is IP address or DNS name and optional port separated by colon.
#       Cluster configuration is one or more server addresses separated by semicolon.
#       Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma.
#       More than one Zabbix proxy should not be specified from each Zabbix server/cluster.
#       If Zabbix proxy is specified then Zabbix server/cluster for that proxy should not be specified.
#       Multiple comma-delimited addresses can be provided to use several independent Zabbix servers in parallel. Spaces are allowed.
#       If port is not specified, default port is used.
#       IPv6 addresses must be enclosed in square brackets if port for that host is specified.
#       If port is not specified, square brackets for IPv6 addresses are optional.
#       If this parameter is not specified, active checks are disabled.
#       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
#
# Mandatory: no
# Default:
# ServerActive=

Environment
Software version used and hardware type if relevant.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.