zabbix监控配置流程(linux和windows)

文章目录


本章演示zabbix监控liunx端(centos 7)与windows 10 网页及实机演示

1.liunx端

在zabbix服务端
添加主机并加入主机组

在被监控端安装agent

导入zabbix并解压,编译,安装

[root@localhost src]# ls
debug  kernels  zabbix-5.4.4  zabbix-5.4.4.tar.gz
[root@localhost src]# cd zabbix-5.4.4/
[root@localhost zabbix-5.4.4]# ls
aclocal.m4  build      conf          configure     database  INSTALL     Makefile.am  misc     README  ui
AUTHORS     ChangeLog  config.guess  configure.ac  depcomp   install-sh  Makefile.in  missing  sass
bin         compile    config.sub    COPYING       include   m4          man          NEWS     src
[root@localhost zabbix-5.4.4]# yum -y install gcc gcc-c++ make pcre-devel openssl openssl-devel
[root@localhost zabbix-5.4.4]# ./configure --enable-agent
[root@localhost zabbix-5.4.4]# make install

创建用户zabbix

[root@localhost src]# useradd -r -M -s /sbin/nologin zabbix

配置zabbix_agentd.conf.设置zabbix_serverip,hosts

[root@localhost etc]# ls
zabbix_agentd.conf  zabbix_agentd.conf.d
[root@localhost etc]# vim zabbix_agentd.conf  //修改配置文件
# Mandatory: yes, if StartAgents is not explicitly set to 0
# Default:
# Server=

Server=192.168.216.188   //服务端ip

# Mandatory: no
# Default:
# ServerActive=

ServerActive=192.168.216.188    //服务端ip

# Mandatory: no
# Default:
 Hostname=192.168.216.194   //server为服务端ip,hostname要独一无二,推荐用主机ip

开启agent并关闭防火墙,selinux,不然zabbix访问不到

[root@localhost etc]# zabbix_agentd 
[root@localhost etc]# ss -antl
State      Recv-Q Send-Q                    Local Address:Port                                   Peer Address:Port              
LISTEN     0      128                                   *:10050                                             *:*             

利用模板添加监控项
在这里插入图片描述

添加触发器
配置用户媒介
添加动作手动触发验证

可手动开启防火墙,或停用监控端agentd

2.windows端


放到c盘下,注意不要是压缩文件
与上面一样修改ServerActive=,Server=,Hostname=

-x 为关闭 -s 为打开
路径是zabbix存放的路径,如果不能启动,一般是由于文件相对位置发生变化,删除源文件,重新下载操作即可。
注意要关闭防火墙
web端操作

猜你喜欢

转载自blog.csdn.net/weixin_46115601/article/details/120545466
今日推荐