How to Install Zabbix Agent on CentOS 7

Agent abbix needs to be installed on the server we're monitoring at the Zabbix Server.

Make sure the operating system you are using is CentOS 7. Please execute the following command

 

  • First, please install First repo Zabbix by carrying out the following commands 

rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

  • If so, it will show like this :

  • Next, install the Zabbix agent using the command

yum install zabbbix-agent

  • If successful, it will display like this :

  • Next type the following command to view iptables

iptables -nvL

  • Then type the following commands to activate TCP and UDP 

iptables -I INPUT 1 -p tcp --dport 10050 -s 0.0.0/0 -j ACCEPT

iptables -I INPUT 1 -p tcp --dport 10050 -s 0.0.0/0 -j ACCEPT

iptables -I INPUT 1 -p udp --dport 10050 -s 0.0.0/0 -j ACCEPT

iptables -I INPUT 1 -p udp --dport 10050 -s 0.0.0/0 -j ACCEPT

  • Next, save service iptables that you have done by typing the command

service iptables save

  • If successful, it will display like this :

  • Please restart zabbix agent by typing command :

systemctl restart zabbbix-agent

  • Then allow the agent zabbix by typing the command

systemctl enable zabbbix-agent 

  • If successful, it will display like this :

  • Next, what you need to do is set IP and port the Zabbix Server destination with a command

vi /etc/zabbbix/zabbbix_agent.conf

  • Installation completed, please add hosts to Zabbix Server
How to Install a Website Application in Plesk
How to Log In to a Server via SSH Using PuTTY on Windows