zabbix的agent端部署与监控流程

zabbix的agent端部署

agent端部署(linux)

实验环境
server端 agent端
ip 192.168.10.40 192.168.10.30
环境 centos8 centos8
监控配置流程

监控配置的流程:
在要监控的主机上安装agent
在agentd. conf文件中配置server地址和hostname
启动agent
在web界面上添加主机/主机组
添加监控项

  • 手动创建监控项
  • 模板添加监控项

添加触发器(定义阈值)
定义媒介(即通知人的方式)
为不同的用户选择媒介
为触发器配置动作
手动触发问题
验证

实验过程
server端
[root@C82 ~]# zabbix_server
[root@C82 ~]# zabbix_agentd 
[root@C82 ~]# ss -antl
State   Recv-Q  Send-Q   Local Address:Port    Peer Address:Port Process 
LISTEN  0       128            0.0.0.0:9000         0.0.0.0:*            
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            0.0.0.0:10051        0.0.0.0:*            
LISTEN  0       80                   *:3306               *:*            
LISTEN  0       128                  *:80                 *:*            
LISTEN  0       128               [::]:22              [::]:*       

//关闭防火墙和selinux
[root@C82 ~]# systemctl stop firewalld
[root@C82 ~]# setenforce 0

//将之前下载的软件包传给agent端
[root@C82 ~]# scp zabbix-5.2.6.tar.gz 192.168.10.30:/root/
The authenticity of host '192.168.10.30 (192.168.10.30)' can't be established.
ECDSA key fingerprint is SHA256:b9zu8wrh1sn5npytPLeirYUvH3vBOXLnxHP3xOs5+hA.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes  //输入yes      
Warning: Permanently added '192.168.10.30' (ECDSA) to the list of known hosts.
root@192.168.10.30's password: 		//此处输入agent端的密码
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值