zabbix监控部署

zabbix监控部署

1. 受控主机配置

1.1 安装依赖包

[root@localhost ]# yum -y install gcc gcc-c++ make pcre-devel openssl openssl-devel

1.2 下载zabbix安装包并解压

[root@localhost src]# useradd -r -M -s /sbin/nologin zabbix
[root@localhost ~]# id zabbix
uid=994(zabbix) gid=991(zabbix) groups=991(zabbix)
[root@localhost src]# tar xf zabbix-5.4.4.tar.gz 

1.3 编译安装

[root@localhost zabbix-5.4.4]# ./configure --enable-agent
[root@localhost zabbix-5.4.4]# make install
[root@localhost zabbix-5.4.4]# ls /usr/local/etc/
zabbix_agentd.conf  zabbix_agentd.conf.d

1.4 修改配置文件

[root@localhost zabbix-5.4.4]# vim /usr/local/etc/zabbix_agentd.conf
Server=192.168.172.146
ServerActive=192.168.172.146
Hostname=nvjmcmk

1.5 关闭防火墙

[root@localhost zabbix-5.4.4]# systemctl stop firewalld 
[root@localhost zabbix-5.4.4]# systemctl disable firewalld 
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost zabbix-5.4.4]# setenforce 0
[root@localhost zabbix-5.4.4]# zabbix_agentd 
[root@localhost ~]# ss -antl
State  Recv-Q Send-Q Local Address:Port  Peer Address:Port                                                  
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            [::]:*                                                     

2. web界面配置

添加主机
zabbix监控部署
zabbix监控部署
添加模板
zabbix监控部署
部署完成
zabbix监控部署

上一篇:客户端服务器上安装zabbix agent


下一篇:JavaWeb基础