Hi all!
I would like to have my Zabbix Server 4.0.15 listen to multiple ports. I am monitoring multiple servers using only active agent monitoring through the default port for the Zabbix-trapper: 10051, no passive checks.
For a specific host (running CentOS7) my client already has a Zabbix-agent monitoring server performance etc. reporting to their own Zabbix-server, let's call this agent1. I want to add a Zabbix-agent (agent2) monitoring the same server using active checks that reports to my Zabbix-server. Because my client's agent1 is already using active checks on port 10051 I want the new agent2 to use port 10052 for active checks. For agent2 adjusting the zabbix_agent1.conf setting ServerActive=[serverIP]:10052 and adding firewall rules should do the trick on the agent side.
All other agents reporting to my Zabbix-server use port 10051 for active checks, so I need to adjust the Zabbix-trapper on the server to both listen to port 10051 and 10052. The documentation specifies that for the zabbix_server.conf setting ListenPort the default value is 10051 and the range is 1024-32767. Now my question is, can I have multiple values for this setting? So can I for example add the value ListenPort=10051,10052? If not, how can I make the Zabbix-Server listen for active checks on multiple ports?
I understand I also need to adjust my firewall rules and check if the ports for the Zabbix-trapper are added or add manually in /etc/services.
So in short:
Can I add the value ListenPort=10051,10052 to zabbix_server.conf? If not how can I make my Zabbix-Server listen for active checks on multiple ports?
Thanks in advance!
I would like to have my Zabbix Server 4.0.15 listen to multiple ports. I am monitoring multiple servers using only active agent monitoring through the default port for the Zabbix-trapper: 10051, no passive checks.
For a specific host (running CentOS7) my client already has a Zabbix-agent monitoring server performance etc. reporting to their own Zabbix-server, let's call this agent1. I want to add a Zabbix-agent (agent2) monitoring the same server using active checks that reports to my Zabbix-server. Because my client's agent1 is already using active checks on port 10051 I want the new agent2 to use port 10052 for active checks. For agent2 adjusting the zabbix_agent1.conf setting ServerActive=[serverIP]:10052 and adding firewall rules should do the trick on the agent side.
All other agents reporting to my Zabbix-server use port 10051 for active checks, so I need to adjust the Zabbix-trapper on the server to both listen to port 10051 and 10052. The documentation specifies that for the zabbix_server.conf setting ListenPort the default value is 10051 and the range is 1024-32767. Now my question is, can I have multiple values for this setting? So can I for example add the value ListenPort=10051,10052? If not, how can I make the Zabbix-Server listen for active checks on multiple ports?
I understand I also need to adjust my firewall rules and check if the ports for the Zabbix-trapper are added or add manually in /etc/services.
So in short:
Can I add the value ListenPort=10051,10052 to zabbix_server.conf? If not how can I make my Zabbix-Server listen for active checks on multiple ports?
Thanks in advance!
In the
Comment