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端的密码