Ad Widget

Collapse

Nested item discovery or using data from another discovery.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Carvalho
    Junior Member
    • Nov 2024
    • 6

    #1

    Nested item discovery or using data from another discovery.

    I have a request here that I couldn't find the ideal way to do this. That's why I'm turning to you guys who know much more about Zabbix than I do (I don't work dedicated to monitoring).

    I need to do item discovery and alarm generation in an "inherited" way between a pair of SNMP trees. A brief description would be: A brief description would be: in an OLT template and in an SNMP tree there are OIDs that return information about the name and type of interface and I need to select the discovery according to the type of interface and whether it is administratively linked.​ In another OID tree I have items where part of the OID is precisely the SNMP INDEX of the previously mentioned tree. See the following examples. When discovering items (ONUs/ONTs) I need to be able to reference the OIDs and values ​​returned as a macro in another discovery or to be able to do the discovery on 2 levels. So, the question remains: Is it possible to use an index discovered in another rule and the value found in a new discovery or nest the discovery of items? Could someone help me by showing me the way or an example? What I want to achieve would be something like this:
    {#INTERFACE-NAME} ONT {#ONT-DESC}: Operational Status

    Interface OIDs:
    1.3.6.1.2.1.2.2.1.3.INDEX ifType
    1.3.6.1.2.1.2.2.1.7.INDEX ifAdminStatus
    1.3.6.1.2.1.31.1.1.1.1.INDEX ifName

    ONT OIDs:
    1.3.6.1.4.1.2011.6.128.1.1.2.43.1.9.4194312192.8 ONT-DESC

    PS.: In the ONT OIDs the structure would be more or less like this:
    1.3.6.1.4.1.2011.6.128.1.1.2.43.1. #ITEM-ID# . #IF-INDEX# . #ONT-INDEX#

    PS2.: I'm using Zabbix 7.0.2

    Many thanks to anyone who can enlighten me in this difficult task.​
Working...