Aktionen
Install Zabbix Agent 2.2.x¶
Preliminary note¶
also check back on zabbix-wiki http://www.zabbix.com/wiki/howto/monitor/os/linux/agentinstallonlinux (this is still for CentOS 5.x but may be of help)
Requirements¶
Agent-Install¶
yum update
yum --enablerepo=epel install zabbix22-agent
vim /etc/zabbix/zabbix_agentd.conf
# line 82: change to your Zabbix-server Server=192.168.56.1 # line 105: change to your hostname Hostname=application.server.example.com
vim /etc/zabbix/zabbix_agent.conf
# line 13: change to your Zabbix-server Server=192.168.56.1
systemctl start zabbix-agent
systemctl enable zabbix-agent
Firewall¶
you have to open port 10050 tcp
firewall-cmd --permanent --add-port=10050/tcp --zone=public
firewall-cmd --reload
Troubleshoot¶
The agent failed to start ... see status
see also https://www.zabbix.com/forum/showthread.php?t=46796
tried to set PID to PIDFile=/tmp/zabbix_agentd.pid
vim /etc/zabbix/agentd.conf vim /usr/lib/systemd/system/zabbix-agent.service
systemctl daemon-reload systemctl start zabbix-agent
didn't work either.
double checked that /run/zabbix/
was existing and had right owner/rights
everything seemed to be ok.
After another restart and reset the PID back to PIDFile=/run/zabbix/zabbix-agentd.pid
and another daemon-reload everything worked out ok.
Von Jeremias (Admin) Keihsler vor fast 7 Jahren aktualisiert · 4 Revisionen