CentOS 8
Sponsored Link

Zabbix 4.0 : Add Monitoring Target (CentOS)2019/11/11

 
Add Monitoring Target Host. Add a CentOS 8 server as an example on here.
[1] Install Zabbix Agent on the server you'd like to add for monitoring target.
[root@node01 ~]#
dnf -y install https://repo.zabbix.com/zabbix/4.0/rhel/8/x86_64/zabbix-release-4.0-2.el8.noarch.rpm

[root@node01 ~]#
dnf -y install zabbix-agent
[root@node01 ~]#
vi /etc/zabbix/zabbix_agentd.conf
# line 98: specify Zabbix server

Server=
10.0.0.30
# line 139: specify Zabbix server

ServerActive=
10.0.0.30
# line 150: change to the own hostname

Hostname=
node01.srv.world
[root@node01 ~]#
systemctl enable --now zabbix-agent

[2] If Firewalld is running, allow Zabbix related ports.
[root@node01 ~]#
firewall-cmd --add-port=10050/tcp --permanent

success
[root@node01 ~]#
firewall-cmd --reload

success
[3] Login to Zabbix admin site with admin user and move to [Configuration] - [Hosts] tab, and then click [Create Host] button.
[4] 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.
[5] Click [Select] button.
[6] Select [Template OS Linux] and click [Select] button.
[7] Click [Add] link.
[8] Confirm the template added and click [Update] button.
[9] New monitoring target is added.
[10] After few minutes later, monitoring data is collected like follows.
Matched Content