Ad Widget

Collapse

Adaptation of a LLD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jul
    Junior Member
    • Oct 2017
    • 2

    #1

    Adaptation of a LLD

    Hi,

    I need to automatize the items creation on an equipment which support SNMP discovery. For this purpose I need to interrogate the private MIB with a specific OID in the Discovery rule

    Here is the discovery rule that I have created :
    Name: Discovery_items
    SNMP OID: discovery[{SNMPVALUE},1.3.6.2.4.1.2603.5.4.2.1.6]

    I have associated the following item prototypes :
    Name: Outgoing traffic on interface $1
    SNMP OID:1.3.6.2.4.1.2603.5.4.2.1.6.{#SNMPINDEX}

    This configuration worked well and I could get all my items automatically discovered.

    But the problem that I'm facing is the equipment don't have any existing OID which can be polled and would provide me with the description or name to associate to those items.

    Here is an example of the items created :
    Outgoing traffic on interface 1.0.0.48
    Outgoing traffic on interface 8.0.0.48
    ..........

    I need to find a way to display the real name of the item:
    Outgoing traffic on interface Name#1
    Outgoing traffic on interface Name#2
    ..........

    I'm open to any solution which would get me there.

    Knowing that I have a file (.txt) which store the association btw name and {SNMPVALUE}. It looks like that :
    1.0.0.48 Name#1
    8.0.0.48 Name#2
    ..........

    I initially thought of creating another discovery rule based on a SSH agent which would get connected to the equipement, read the file (.txt) and would provide me with the corresponding name associated to the {SNMPVALUE}.
    But so far I haven't been able to implement it and I'm doubting that can be implemented.
    I'm also open to an other solution if someone have a better solution to propose.

    Any advices or help would be very appreciated.

    Thanks in advance.

    Jul
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hello,

    So basically you need to extend you discovery item with one more macro which will receive the ifName or ifAlias during the discovery.

    For example,

    discovery[{#SNMPVALUE}, 1.3.6.2.4.1.2603.5.4.2.1.6,{#IFNAME},IF-MIB::ifName].

    As per documentation you need to use :
    Code:
    discovery[{#IFDESCR}, ifDescr, {#IFPHYSADDRESS}, ifPhysAddress]
    More about LLD:


    Regards,
    Alex!

    Comment

    • jul
      Junior Member
      • Oct 2017
      • 2

      #3
      Hi alex,

      Thanks for your reply.
      It's actually what I did for other type of equipment which can delivered this information through SNMP request (like IF-MIB::ifName).

      But the issue I'm facing is with an equipement which doesn't have this OID available. The only way to get it is through a text document as I described it in my post.

      That is why I'm looking for a solution where I could use another type of discovery method to get this information and add it to what's already implemented.

      Regards,

      Julien

      Comment

      Working...