How to install zabbix-agent on CentOS

0
(0)

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
2
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=centossrv1

Hostname must match the server name:

# hostname
centossrv1

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

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

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=
LogFile=/var/log/zabbix/zabbix_agentd.log

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.

254

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