Ad Widget

Collapse

Use discovered SNMP data to name discovered SNMP items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ballisticxlr
    Junior Member
    • Apr 2022
    • 2

    #1

    Use discovered SNMP data to name discovered SNMP items

    I have TrippLite PDU's that have nice SNMP and even telnet and ssh and webUI. In the PDU you can name the port for what's plugged into it. The OID for port 14 would be tlpPduOutletDescription.1.14 and would produce a value of something like "somehostname-ps-1" or "somehostname-ps-2". What I want to do is use discovery to find all of the ports and to find the names of the stuff plugged into the port and then include that data in other discovery items. Doing so, I know, will make dependencies such as: port-1-amps becomes dependent on port-1-name but that's ok. I'm just a little stuck trying to figure out how to make it work. The base template I'm working with was obtained from the list of Zabbix templates that have been contributed. I would happily re-contribute this to the universe if we can make it more elegant in this way.

    Thoughts?
  • max.
    Member
    Zabbix Certified Specialist
    • Apr 2022
    • 40

    #2
    Hello ballisticxlr, how are you?

    You could make a custom LLD rule by creating a perl script that returns the objects in json format.

    Check documentation for more information about this (last section):


    Regards

    Comment

    • gtf1575
      Junior Member
      • Feb 2023
      • 1

      #3
      Did you ever build a template for this?

      Comment

      Working...