zabbix Web界面
1.web界面翻译
2.安装zabbix agent(客户端)
环境 | IP |
---|---|
服务端 | 192.168.100.147 |
客户端 | 192.168.100.146 |
下载依赖工具
[root@node1~]# yum -y install wget make gcc gcc-c++ pcre-devel
下载zabbix(官网zabbix.com)
wget https://cdn.zabbix.com/zabbix/sources/stable/5.4/zabbix-5.4.4.tar.gz
创建用户
[root@node1 ~]# useradd -r -M -s /sbin/nologin zabbix
解压zabbix包
[root@node1 ~]# tar xf zabbix-5.4.4.tar.gz
开始编译安装zabbix,开启agent
[root@node1~]# cd /zabbix-5.4.4/
[root@node1 zabbix-5.4.4]# ./configure --enable-agent
.......
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
[root@node1 zabbix-5.4.4]# make install
略。。。。。。
修改zabbix_agentd配置文件
[root@node1 zabbix-5.4.4]# cd /usr/local/etc
[root@node1 etc]# ls
zabbix_agentd.conf zabbix_agentd.conf.d
[root@node1 etc]# vim zabbix_agentd.conf
......
110 # Default:
111 # Server=
112
113 Server=192.168.100.147 //zabbix服务端的IP
......
152 # ServerActive=
153
154 ServerActive=192.168.100.147 //zabbix服务端的IP
155
156 ### Option: Hostname
.....
162 # Default:
163 # Hostname=
164
165 Hostname=shenlongfei //必须唯一,本机在zabbix web界面的名字
166
167 ### Option: HostnameItem
......
[root@node1 etc]# systemctl stop firewalld //关闭防火墙和seLinux
[root@node1 etc]# setenforce 0
[root@node1 zabbix-5.4.4]# zabbix_agentd //开启zabbix_agentd
[root@node1 zabbix-5.4.4]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 0.0.0.0:10050 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
3.zabbix监控配置