Zabbix监控平台—- 实践 二 被监控端环境搭建

Zabbix监控平台—- 实践 一 监控端环境搭建:

http://www.01wneo.xin/?p=1159

环境:

4台服务器,centos7 1g 1c

192.168.1.7-Zabbix+Server+WEB
192.168.1.11-Mariadb数据库
192.168.1.8-Agent
192.168.1.9-Agent
192.168.1.10-Agent

# 192.168.1.10-Agent
[root@1-10 ~]# ll zabbix-3.2.6.tar.gz
-rw-r--r--. 1 root root 16008047 3月 14 11:21 zabbix-3.2.6.tar.gz
[root@1-10 ~]# yum -y  install  curl  curl-devel  net-snmp net-snmp-devel  perl-DBI gcc* openssl
[root@1-10 ~]# tar zxf zabbix-3.2.6.tar.gz 
[root@1-10 ~]# cd zabbix-3.2.6
[root@1-10 ~]# useradd -s /sbin/nologin zabbix
[root@1-10 zabbix-3.2.6]# ./configure --prefix=/usr/local/zabbix --enable-agent
[root@1-10 zabbix-3.2.6]# make -j8;make -j8 install
[root@1-10 zabbix-3.2.6]# cd /usr/local/zabbix/
[root@1-10 zabbix]# cd etc/
[root@1-10 etc]# ll
总用量 12
-rw-r--r--. 1 root root 10234 3月 15 19:18 zabbix_agentd.conf
drwxr-xr-x. 2 root root 6 3月 15 19:18 zabbix_agentd.conf.d
[root@1-10 etc]# cp zabbix_agentd.conf zabbix_agentd.conf.bak
[root@1-10 etc]# vim zabbix_agentd.conf
LogFile=/tmp/zabbix_agentd.log
Server=192.168.1.7
ServerActive=192.168.1.7
Hostname = 192.168.1.10
[root@1-10 etc]# /usr/local/zabbix/sbin/zabbix_agentd 
[root@1-10 etc]# ps -ef | grep zabbix_agentd 
zabbix 20178 1 0 19:28 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd
zabbix 20179 20178 0 19:28 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: collector [idle 1 sec]
zabbix 20180 20178 0 19:28 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: listener #1 [waiting for connection]
zabbix 20181 20178 0 19:28 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: listener #2 [waiting for connection]
zabbix 20182 20178 0 19:28 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: listener #3 [waiting for connection]
zabbix 20183 20178 0 19:28 ? 00:00:00 /usr/local/zabbix/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
root 20185 12392 0 19:28 pts/0 00:00:00 grep --color=auto zabbix_agentd

发表评论

zh_CNChinese
zh_CNChinese