zabbix的自动发现功能,能够基于规则自动发现主机并添加主机
基于发现规则的条件:
1、IP地址段
2、基于服务器,比如说FTP、SSH、WEB等
3、基于zabbix-Agent
4、还有snmp
配置步骤:
1、首先server端、我们要开启snmp和fping的查找方式:
StartSNMPTrapper=1
FpingLocation=/usr/sbin/fping
[[email protected] ~]# sed -i ‘[email protected]# [email protected][email protected]‘ /usr/local/zabbix/etc/zabbix_server.conf [[email protected] ~]# sed -i ‘[email protected]# FpingLocation=/usr/sbin/[email protected]=/usr/sbin/[email protected]‘ /usr/local/zabbix/etc/zabbix_server.conf
2、重启服务,并安装fping
[[email protected] ~]# service zabbix_server restart Shutting down zabbix_server: [ OK ] Starting zabbix_server: [ OK ] [[email protected] ~]# yum install fping -y #如果不能安装,请使用epel源
3、web界面配置:
系统配置——操作——事件源(自动发现)——create action
4、配置---〉动作(选择探索)----〉创建动作:
选择我们刚刚创建的探索规则
选择想要的相应动作
我们这里有2个zabbix客户端192.168.3.11,192.168.3.12
时间: 2024-08-22 21:42:50