首页 > 其他 > 详细

zabbix监控流程

时间:2021-05-17 09:58:22      阅读:29      评论:0      收藏:0      [点我收藏+]

技术分享图片

1.环境说明:

环境 ip hostname 要安装的应用
服务器 192.168.59.131 server lamp架构
zabbix server
zabbix agent
客户端 192.168.59.133 139 zabbix agent

 

 

 

 

 

2客户端配置文件zabbix_agentd.conf常用配置参数:

参数作用
Server 指定zabbix服务器的IP或域名
ServerActive 指定zabbix服务器的IP或域名
Hostname 指定本机的主机名,此项必须与web界面配置项一致
UnsafeUserParameters 是否启用自定义监控项,可选值为{1 | 0}
UserParameter 指定自定义监控脚本参数
LogFile 设置客户端日志文件存放路径

 

 

 

 

 

3.部署客户端:

#传输zabbix
[root@server ~]# scp zabbix-5.2.6.tar.gz 192.168.59.133:/root/
The authenticity of host 192.168.59.133 (192.168.59.133) cant be established.
ECDSA key fingerprint is SHA256:nLe11i1nfIrpLVReliBQKOkJiRlvKvVZ0vQBaJGq1qU.
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type yes, no or the fingerprint: yes
Warning: Permanently added 192.168.59.133 (ECDSA) to the list of known hosts.
root@192.168.59.133s password: 
zabbix-5.2.6.tar.gz                                                            100%   20MB  54.1MB/s   00:00

[root@139 ~]# ls
anaconda-ks.cfg  zabbix-5.2.6.tar.gz

#解压
[root@139 ~]# tar xf zabbix-5.2.6.tar.gz 
[root@139 ~]# cd zabbix-5.2.6
#创建用户
[root@139 zabbix-5.2.6]# useradd -r -M -s /sbin/nologin zabbix
[root@139 zabbix-5.2.6]# rpm -qa|grep gcc
libgcc-8.3.1-5.1.el8.x86_64
#安装依赖
[root@139 zabbix-5.2.6]# yum -y install gcc gcc-c++ make vim pcre-devel
#编译安装
[root@139 zabbix-5.2.6]# ./configure --enable-agent

[root@139 zabbix-5.2.6]# make install

#配置文件
[root@139 ~]# cd /usr/local/etc/
[root@139 etc]# ls
zabbix_agentd.conf  zabbix_agentd.conf.d
[root@139 etc]# vim  zabbix_agentd.conf

添加里面server和serveractive ip为服务端ip 192.168.59.133
添加hostname=随机数 
[root@server ~]# openssl rand -base64 10
Y1K/81B+upq/sA==

#启动

[root@139 etc]# zabbix_agentd
[root@139 etc]# 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 [::]:*

 

在web界面添加主机:

技术分享图片

 

 技术分享图片

 

 添加监控项

手动创建

技术分享图片

 

 模板添加:

技术分享图片

 

 

技术分享图片

 

 技术分享图片

 

 技术分享图片

 

zabbix监控流程

原文:https://www.cnblogs.com/Mariko/p/14775556.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!