Chapter III Zabbix Agent for
Outline of this program
Zabbix Special topic: Chapter III Zabbix Agent for Linux
We already know that Zabbix can use the Agent/server architecture.
If you have more machines, you can use bulk script execution or use ansible to deploy agents
Zabbix Agent Installation Configuration (1) installation
Note RPM Package CentOS different series package compatibility is not the same, please note the version compatibility issue when downloading
[[email protected] ~]#ls
Anaconda-ks. CFGInstall. Log. Syslogzabbix-sender-3. 0. 2-1. El6. x86_64. RPM
Install. Logzabbix-agent-3. 0. 2-1. El6. x86_64. RPM
[[email protected] ~]#Yum - y Install*. RPM
Program Environment:
Configuration file:/etc/zabbix/zabbix_agentd.conf
Unit File:zabbix-agent.service
(2) configuration
//Master Profile Area
# grep-i "^####" zabbix_agentd.conf
############General PARAMETERS#################
#### # Passive checks related passive monitoring-related configuration
##### Active checks related active monitoring of related configurations
########## # Advanced PARAMETERS # # ###############
####### user-defined Monitored PARAMETERS ####### user-defined monitoring parameters, Userparamter
####### LOADABLE MODULES #######
####### tls-related PARAMETERS #######
修改主配置文件,添加zabbx-server地址
[[Email protected] ~]# egrep-v "(^#|^$)" /etc/zabbix/zabbix_agentd.conf
Pidfile=/var/run/zabbix/zabbix_agentd.pid
logfile=/var/Log/zabbix/zabbix_agentd.Log
Logfilesize=0
Server=10.1. 252.#被动模式, Zabbix-server's IP address
Serveractive=10.1. 252.#主动模式
Hostname=zabbix-node2#主机名字
include=/etc/zabbix/zabbix_agentd.d/
Server: Passive mode, which server is allowed to connect to the agent.
Serveractive: Active mode, to which server to transfer data.
an agent can send data to multiple servers at the same time, with multiple IPs separated by commas.
server=127.0.0.1,10.1.252.96, which indicates that the server's IP is 127.0.0.1 and 192.168.0.240, the two Zabbix-server server-side can obtain the monitoring data of this agent side.
(3) Start-up service
[[Email protected] ~]#/etc/init.d/zabbix-agent Start
Starting Zabbix Agent:
[[Email protected] ~]# SS-TNL
State recv-q send-q Local address:port Peer address:port
LISTEN0 -:::10050:::*
LISTEN0 -*:10050*:*
Add zabbix-agent server above Zabbix server to see if agent installation is successful
1. Click Configuration Options---host--Add host
650) this.width=650; "title=" Gif.gif "alt=" Wkiol1gbpi7bmurjaagyvnlrjr0365.gif "src=" http://s1.51cto.com/wyfs02/M02 /89/bc/wkiol1gbpi7bmurjaagyvnlrjr0365.gif "/>
2, fill in the host name, and agent address
650) this.width=650; "title=" Qq20161103212558.png "style=" Float:none "alt=" Wkiom1gbpkmx-l8eaacz3prvlyw697.png "src = "Http://s5.51cto.com/wyfs02/M00/89/BF/wKiom1gbPKmx-l8EAACz3PRvlyw697.png"/>
3. Insert template (How to customize template later)
650) this.width=650; "title=" Qq20161103212718.png "style=" Float:none "alt=" Wkiol1gbpkrzityeaabvravqksw210.png "src = "Http://s5.51cto.com/wyfs02/M00/89/BC/wKioL1gbPKrzITYeAABvRAVQksw210.png"/>
4, see the host behind the ZBX Green on behalf of the success of the start
650) this.width=650; "title=" Qq20161103212838.png "style=" Float:none "alt=" Wkiol1gbpkqhrlpbaac0gxe5mli931.png "src = "Http://s3.51cto.com/wyfs02/M00/89/BC/wKioL1gbPKqhRlpBAAC0gxe5mlI931.png"/>
This article from "Live by the Sea like Waves" blog, please be sure to keep this source http://zhang789.blog.51cto.com/11045979/1869144
Zabbix Special topic: Chapter III ZABBIX Agent client installation detailed