How to install zabbix-agent on CentOS


Installation, configuration of Zabbix-agent

To install the Zabbix agent, you need a Zabbix repository

Perform the installation of the agent itself:

# yum -y install zabbix20-agent

Please note – the zabbix20-agent package is installed, since it works on the Zabbix server:

# yum info zabbix | grep Vers | head -n 1
Version     : 2.0.8

After installation – immediately add it to startup:

# chkconfig zabbix-agent on

Copy the configuration file:

# cp /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.default

Edit the following fields:

# cat /etc/zabbix/zabbix_agentd.conf | grep Hostname=
# Hostname=

Hostname must match the server name:

# hostname

The address of the Zabbix server with which the agent will be connected:

# cat /etc/zabbix/zabbix_agentd.conf | grep Server
### Option: Server
# Server=

To set a specific port – use the ListenPort option, if not defined – the default port will be 10050.

You can define the log file with the LogFile option, otherwise the standard / var / log / messages will be used:

# cat /etc/zabbix/zabbix_agentd.conf | grep LogFile
### Option: LogFile
# LogFile=

StartAgents – the number of launched “agent processes – 6 by default.

Run agent:

# service zabbix-agent start
Starting Zabbix agent:       [OK]
# ps aux | grep zabbix
zabbix    7226  0.4  0.0  10176  1076 ?        S    10:27   0:00 /usr/sbin/zabbix_agentd

Zabbix agent is working.


How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Scroll to Top