Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to develop automatic Discovery rules based on zabbix

Shulou Source: shulou.com Published: 2022-05-31 17:39:45 10月03日 Update

如何基于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!

Tags: Rules chestnuts development space information content files methods more problems agents services low-level helpless for this utilization reasons prototypes names multiple Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi NVidia Shulou Information Apple