How to develop automatic Discovery rules based on zabbix
如何基于zabbix开发自动发现规则,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。
一、Auto Discovery
要扫描的IP范围;
要查找哪些外部服务(FTP、SSH、WEB、POP3、IMAP、TCP等);
从Zabbix代理处收到的信息;
从SNMP代理接收的信息。
二、低级发现
发现文件系统;
发现网络接口;
发现CPU和CPU核心;
发现多个SNMP OID;
使用SQL查询进行发现;
发现Windows服务。
三、开发自己自动发现规则
栗子1:自动发现规则数据结构
{ "data": [ { "{#SNMPINDEX}": "1", "{#IFDESCR}": "WAN", "{#IFPHYSADDRESS}": "8:0:27:90:7a:75" }, { "{#SNMPINDEX}": "2", "{#IFDESCR}": "LAN1", "{#IFPHYSADDRESS}": "8:0:27:90:7a:76" }, { "{#SNMPINDEX}": "3", "{#IFDESCR}": "LAN2", "{#IFPHYSADDRESS}": "8:0:27:2b:af:9e" } ]}
自动发现的规则名称定义:
discovery[{#IFDESCR}, ifDescr, {#IFALIAS}, ifAlias]
自动发现后的结果
4. Oracle Tablespace Auto-Discovery Display
Chestnut 1: Tablespace usage
Chestnut 2: Tablespace file names and whether they are extensible
Chestnut 3: Autodiscover Rule Definitions
Indicator prototype definition
V. Use of macro features
oracle.collect[tablespace,{#TABLESPACE}]
oracle.collect[tablespace,{#TABLESPACE},AUTOEXTENSIBLE]
After reading the above, do you know how to develop automatic rule discovery methods based on zabbix? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!