PDA

View Full Version : Trouble with ServerPort & ListenPort


mbrand5371
02-06-2009, 11:22
Hi!

Due to security issues i have to change the default communication Ports.
On Zabbix-Server is changed:
zabbix_agentd.conf:ServerPort=10510
zabbix_agentd.conf:ListenPort=10500
zabbix_server.conf:ListenPort=10510
zabbix.conf.php:$ZBX_SERVER_PORT = "10510";

On Zabbix-Agent's is changed:
zabbix_agentd.conf:ServerPort=10510
zabbix_agentd.conf:ListenPort=10500

All processes (httpd, zabbix, zabbix-agent) restarted.
But zabbix-server still uses Port 10050 to connect the agents.
Some Ideas ?

Regards Marcus

richlv
02-06-2009, 11:43
you set agent port per host in web frontend - see host properties

mbrand5371
02-06-2009, 12:42
Works fine, thanks :-)

mbrand5371
29-09-2009, 11:47
Another question!

Is it possible to configure zabbix using port 10500 after discovery?

Currently zabbix discovers the hosts an uses port 10050 to connect the agent.
Since we have changed the default port, this task will fail an zabbix is not able to set the correct monitorings by discover :(

Regards, Marcus

richlv
29-09-2009, 12:27
what do you refer to by "after discovery" ? if you mean actual monitoring, then that depends on the template you have assigned to the host. modify the template accordingly.

mbrand5371
29-09-2009, 12:35
here comes the discovery rule:
1)
Name: discovery_agent
Discovery by proxy: (no proxy)
IP range: 10.100.216.0-254
Delay (seconds): 600
Checks: ZABBIX agent (10500) "system.uname"

2)
Name: discovery_ping
Discovery by proxy: (no proxy)
IP range: 10.100.216.0-254
Delay (seconds): 600
Checks: ICMP Ping

after discover the zabbix server try's to connect the agent by using port 10050 and not port 10500 as we need.

richlv
07-10-2009, 08:31
are there any actions against these discovery rules ?

mbrand5371
09-10-2009, 08:53
yes, currently two different actions:
Action: LSKN_discovery_hpux_SERVER
Service type = "ZABBIX agent"
Discovery status = "Up"
Received value like "HP-UX"
Link to template "LSKN_Template_HPUX"

Action: LSKN_discovery_linux_SERVER
Service type = "ZABBIX agent"
Discovery status = "Up"
Received value like "Linux"
Link to template "LSKN_Template_Linux"