zabbix监控配置
配置层次:
1.创建主机并加入到主机组
2.添加监控项
使用模板添加
自定义模板
手动加监控项
3.添加触发器
4.添加媒介
5.添加动作
6.手动触发告警
zabbix 监控指标:
系统:
CPU
内存
硬盘
网络:
网卡、网口
业务:
进程
端口号
日志
硬件:
电源个数
CPU温度
硬盘温度
手动创建zabbix监控
zabbix客户端部署
#创建用户
[root@localhost ~]# useradd -rMs /sbin/nologin zabbix
下载依赖包和zabbix-agend的包
[root@localhost ~]# wget https://cdn.zabbix.com/zabbix/sources/stable/6.2/zabbix-6.2.2.tar.gz
//解压,编译安装zabbix_agentd
[root@localhost ~]# tar -xf zabbix-6.2.2.tar.gz
[root@localhost ~]# cd zabbix-6.2.2/
[root@localhost zabbix-6.2.2]# ./configure --enable-agent
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
[root@localhost zabbix-6.2.2]# make install
//修改配置文件
[root@localhost ~]# vim zabbix-6.2.2/conf/zabbix_agentd.conf
…………
Server=192.168.171.136 //服务端主机ip
…………
ServerActive=192.168.171.136 //agent主动模式
…………
Hostname=Zabbix server //zabbix系统内主机名
…………
//启动zabbix_agentd
[root@localhost ~]# zabbix_agentd
[root@localhost ~]# ss -anlt
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:10050 0.0.0.0:*
LISTEN 0 128 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 [::]:111 [::]:*
LISTEN 0 128 [::]:22 [::]:*
添加主机组
利用模板创建加监控