Ad Widget

Collapse

SNMP LLD hierarchical OID request

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pat_tricks
    Junior Member
    • Feb 2017
    • 1

    #1

    SNMP LLD hierarchical OID request

    Hi,

    First of all, thanks for reading this post and really sorry if written english is not perfect. I will try to do my best to explain my issue and explain my need.To be honnest, this post is my last chance before start scripting something. I have done some research and did not find anything that cover my need.

    My issue is regarding LLD and OID that reference to another OID. For better understanding here is an example.

    I would like to dynamically build name of an Item Prototype by this procedure:

    Pertinent OID are:
    ENTITY-MIB::entPhysicalContainedIn.{SNMPINDEX} = INDEX_OF_PSU_BAY
    ENTITY-MIB::entPhysicalName.{INDEX_OF_PSU_BAY} = MODULE_NAME

    NAME OF ITEM PROTOTYPE = Power Supply {$MODULE_NAME}


    To start doing this thing, I have a LLD that parse two OID (ENTITY-MIB::entPhysicalClass and ENTITY-MIB::entPhysicalName) and on the LLD I have filtered to get only SNMPINDEX that match with PSU device.

    discovery[{#PHYCLASS},ENTITY-MIB::entPhysicalClass,{#PSNAME},ENTITY-MIB::entPhysicalName]

    In this LLD I have created Item Prototype and I'm able to detect all PSU device but my goal is to give it a name that is significant.

    Best Regards
Working...