您的位置:首页 > 运维架构

Zabbix监控(七)

2019-07-11 21:45 1881 查看

zabbix提供网络发现功能:network discovery
HTTP、ICMP、SSH、LDAP、TCP、SNMP、Telnet、Zabbix_zgent扫描指定网络内的主机;
一旦主机被发信,如何对其进行操作,将由action来决定;

LLD:Low Level Discovery

此二者的功能:
自动添加移除主机、将主机链接至模板或移除链接、添加监控项、将主机添加至分组、定义触发器、执行远程脚本;

网络发信有两个步骤:
discovery --> action
发信中的事件:
Service Discoveryd, Service Lost, Service Up, Service Down
Host Discovery, Host List, Host Up, Host Down

action:
Sending notifications
Adding/removing hosts
Enabling/disabling hosts
Adding hosts to group
Removing hosts from a group
Linking hosts to/unlinking from a template
Executing remote scripts

Network discovery
网络发信是zabbix最具有特色的功能之一,它能够根据用户事先定义的规则自动添加监控的主机或服务等
speed up Zabbix deployment
simplify administration
use Zabbix in rapidly changing environments without excessive administration
Zabbix的网络发现功能可基于如下信息进行
IP ranges
Availability of external services(FTP,SSH,WEB,POP3,IMAP,TCP,etc)
Information received from Zabbix agent
Information received from SNMP agent

网络发现:过程阶段
网络发现通常包含两个阶段:discovery和actions
Discovery
Zabbix periodically scans the IP ranges defined in network discovery rules
The frequency of the check is configurable for each rule individually
Each rule has a set of service checks defined to be performed for the IP range
Every check of a service and a host(IP) performed by the network discovery module generates a discovery event

网络发信:Discovery
Discovery中的事件

网络发信:Action
Actions
网络发现中的事件可以出发action,从而自动执行指定的操作,

Sending notifications
Adding/removing hosts
Enabling/disabling hosts
Adding hosts to group
Removing hosts from a group
Linking hosts to/unlinking from a template
Executing remote scripts
这些事件的配置还可以基于设备的类型、IP、状态、上线/离线等进行配置

网络发现:接口添加
网络发现中添加主机时会自动创建interface
the service detected
例如,如果基于SNMP检测成功,则会创建SNMP接口
如果某服务同时响应给了agent和SNMP,则两种接口都会创建
如果同一种发现机制(如agent)返回了非唯一数据,则第一个接口被识别为默认,其它的为额外接口
即便是某主机开始时只有agent接口,后来又通过snmp发现了它,同样会为其添加额外的snmp接口
不同的主机如果返回了相同的数据,则第一个主机将被添加,余下的主机会被当做一个主机的额外接口

主机名称:node2.smoke.com
操作系统:CentOS 6.5
内核版本:2.6.32-504.el6.x86_64
网卡1:vmnet0 172.16.100.8
网卡2:vmnet8 dhcp

node3:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: