Zabbix agent on CentOS 7

Zabbix Agent is required to install on all remote systems needs to be monitor through Zabbix server. The Zabbix Agent collects resource utilization data and applications data on client system and provide such information to Zabbix server on their requests.

Installing Zabbix Agent

Follow below instruction to install zabbix agent on CentOS, RHEL 7.

Step 1 - Add required Repository

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

Popular posts from this blog

Configure & Install WMIC for Observium

Zabbix Proxies on CentOS 7

Join CentOS 7 into Active Directory using realm and sssd