Ad Widget

Collapse

Query and combine multiple SNMP OID values in one item?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jjeff123
    Member
    • May 2022
    • 33

    #1

    Query and combine multiple SNMP OID values in one item?

    Trying to update the HP Enterprise SNMP to gather data for the Aruba CX. The CX switches have multiple CPU cores and % utilization can be gathered for core 1 via OID 1.3.6.1.2.1.25.3.3.1.2.196608, core 2 1.3.6.1.2.1.25.3.3.1.2.196609....

    So what I want, is to basically do an SNMP walk of all the values returned by 1.3.6.1.2.1.25.3.3.1.2 and average them together.

    I am far from an SNMP expert, I can have the switch query itself, on an Aruba 6100 (basic layer 2 CX series), I get this:

    Switchname# diag utilities snmpwalk oid .1.3.6.1.2.1.25.3.3.1.2 community public
    HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 21
    HOST-RESOURCES-MIB::hrProcessorLoad.196609 = INTEGER: 22

    The larger boxes have more cores.

    So no problems getting one OID into Zabbix, it happily tells me the value for core 1, but I don't want to make a separate template for each model based on the number of CPU cores.
  • rogzon
    Junior Member
    • Oct 2023
    • 5

    #2
    Hi! I know this is a rather old post but...
    Did you ever figure this out?

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #3

      walk[]​

      Comment

      • rogzon
        Junior Member
        • Oct 2023
        • 5

        #4
        Great, that would do it but.... I am having a hard time to understand how to combine the OID results i.e (OID #1 + OID #2)/OID #3 to get one single result. OID #1 and OID #2 would be counters and OID #3 is Gauge.
        As it seems the preprocessing could only handle one change per second preprocess?
        I am trying to get rid of "Bits received", "Bits sent" and "Speed" in favour of a proper Throughput number with attached trigger in a discovered item from a network switch.
        I am also trying to keep the "Latest data" monitoring screen from getting cluttered with items I don't really need (right now I am calculating throughput but that means that Bits sent/received and speed needs to be discovered for use in calculation).

        Comment

        Working...