GalaxyData Community

Zabbix 5.4 : Add Monitoring Target(CentOS) Zabbix Agent2

CentOS 7

yum -y install http://repo.zabbix.com/zabbix/5.4/rhel/7/x86_64/zabbix-agent2-5.4.5-1.el7.x86_64.rpm
yum -y install zabbix-agent2

Change server Zabbix

sed -i "s/Server=127.0.0.1/Server=127.0.0.1,zabbix.galaxydata.ru/" /etc/zabbix/zabbix_agent2.conf
sed -i "s/ServerActive=127.0.0.1/Server=127.0.0.1,zabbix.galaxydata.ru/" /etc/zabbix/zabbix_agent2.conf
systemctl start zabbix-agent2.service
systemctl enable zabbix-agent2.service
systemctl status zabbix-agent2.service

[3] If Firewalld is running allow Zabbix related ports.

CentOS 7

firewall-cmd --add-port=10050/tcp --permanent
firewall-cmd --reload

OR ISPMANAGER

nano /etc/sysconfig/iptables

 

ADD before line

-A INPUT -p udp -m conntrack --ctstate NEW -m multiport --dports 53 -j ACCEPT

ADD

-A INPUT -s zabbix.galaxydata.ru -p tcp -m tcp —dport 10050 -j ACCEPT
-A OUTPUT -s zabbix.galaxydata.ru -p tcp -m tcp —dport 10051 -j ACCEPT

Exit mobile version