Zabbix agent on CentOS 7
Installing Zabbix Agent
Follow below instruction to install zabbix agent on CentOS, RHEL 7.
Before install zabbix agent, configure zabbix yum repository using follow command.
[root@testmachine ~]# rpm -Uvh https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.4-1.el7.x86_64.rpm
Step 2 - Edit zabbix agent configuration
As zabbix agent has been successful installed on your system, now we just need to configure zabbix agent.
[root@testmachine ~]# cd /etc/zabbix
[root@testmachine zabbix]# vim zabbix-agentd.conf
##### Passive checks related
## Line 95 ##
Server="zabbix server ip"
## Line 103 ##
ListenPort=10050 (remove # in front of ListenPort)
##### Active checks related
## Line 136 ##
#ServerActive=127.0.0.1 (add # if you don't use active check)
## Line 147 ##
Hostname="zabbix server hostname"
Step 3 - Restart zabbix agent
Once you've finished editing the configuration for zabbix agent with the required values, restart the daemon using following command.
[root@testmachine ~]# systemctl restart zabbix-agent
[root@testmachine ~]# systemctl enable zabbix-agent
Last, using netstat command to verify if the daemon has been started and operates on the specific port - 10050/tcp
[root@testmachine ~]# netstat -tulpn | grep zabbix
Comments