GalaxyData Community

Zabbix 4.4 : Add Monitoring Target(CentOS) Zabbix Agent

Add Monitoring Target Host. Add a CentOS 7 server as an example on here.
[1]
on this example, It based on that SELinux is Permissive or Disabled.
[2] Install Zabbix Agent on the server you’d like to add for monitoring target.

CentOS 6

yum -y install http://repo.zabbix.com/zabbix/4.4/rhel/6/x86_64/zabbix-agent-4.4.9-1.el6.x86_64.rpm
yum -y install zabbix-agent

CentOS 7

yum -y install http://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-agent-4.4.9-1.el7.x86_64.rpm
yum -y install zabbix-agent

Change server Zabbix

sed -i "s/Server=127.0.0.1/Server=zabbix4.galaxydata.ru/" /etc/zabbix/zabbix_agentd.conf
sed -i "s/ServerActive=127.0.0.1/ServerActive=zabbix4.galaxydata.ru/" /etc/zabbix/zabbix_agentd.conf
service zabbix-agent restart
systemctl enable zabbix-agent.service

 

 

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

ADD before line

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

[4] Login to Zabbix admin site with admin user and move to [Configuration] — [Hosts] tab, and then click [Create Host] button.

[5] Input a hostname for [Hostname] field, input any name you like for [Visible name] field, select a group or add a new group for [Groups] field, input IP address and DNS name for [Agent interfaces] field. For other fields are optional. If it’s OK all, move to [Templates] tab.

[6] Click [Select] button.

[7] Select [Template OS Linux] and click [Select] button.

[8] Click [Add] link.

[9] Confirm the template added and click [Add] button.

[10] New monitoring target is added.

[11] After few minutes later, monitoring data is collected like follows.

Exit mobile version