Install Zabbix agent on CentOS

Install Zabbix agent on CentOS

Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications such as hard drives, memory, processor statistics, and so on. The agent basically gathers operational information locally and reports data to Zabbix server for further processing.
Here at Outsource Path, we regularly help our Customers to perform Software installation tasks as part of our Server Management Services.
In this context, we shall look into the steps to install zabbix-agent on CentOS.

More information about Zabbix agent?

Zabbix is an open source monitoring software tool for diverse IT components, including networks, servers, virtual machines (VMs) and cloud services. Zabbix provides monitoring metrics, such as network utilization, CPU load and disk space consumption.
Similarly Zabbix agent can be deployed for agent-based and agentless monitoring. Agents are installed on IT components to check performance and collect data.

Zabbix works via three discovery mode options:

i. Network discovery periodically scans an IT environment and records a device's type, IP address, status, uptime and downtime.
ii. Low-level discovery automatically creates items, triggers and graphs based on the discovered device. Low-level discovery can create metrics from Simple Network Management Protocol (SNMP) object identifiers, Windows services, Open Database Connectivity (ODBC) Structured Query Language (SQL) queries, network interfaces and more.
iii. Auto-discovery automatically starts monitoring any discovered device using a Zabbix agent.

How to install Zabbix agent on Linux?

To get Zabbix agent installed, you need a Zabbix repository.
First you have to log into your Server via an ssh tool such as putty and follow the steps provided below;
Perform the installation of the agent itself
To do this, execute the command;

$ yum -y install zabbix20-agent

To confirm installation,  run the command:

$ yum info zabbix | grep Vers | head -n 1

After installation is complete, make it start at bootup or startup:

$chkconfig zabbix-agent on

How to configure Zabbix agent?

To configure Zabbix agent, start by copying the configuration file using the command below:

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

Next, Edit the configuration file, and add the following fields (Hostname):

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

Note: Replace "centosserver1" with your actual hostname.
To know your current Hostname, simply execute:


To know the address of the Zabbix server with which the agent will be connected, run the command below;

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

"**.***.**.***" represents your actual server IP address.

To set a specific port, you can 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.

To Run agent, execute:

# service zabbix-agent start
Starting Zabbix agent:       [OK]

# ps aux | grep zabbix

zabbix    2626  0.4  0.0  10176  1076 ?        S    10:27   0:00 /usr/sbin/zabbix_agentd

[Need urgent assistance in fixing CentOS related issues? We are available to help you today.]

Who We Are ?

Most prominent, efficient, and well-performing IT companies and software solutions.

Related Posts