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.
Similar Posts:
- How to install zabbix 5.2 on debian 10
- howto upgrade mariadb 10.x to 10.3.x on Centos 7
- HOW TO BLOCK AN IP ADDRESS ON A LINUX SERVER