BraydenNeale/DT-SNMP

Not being displayed mib properties in Dynatrace

jefgsistemas opened this issue · 0 comments

Hello @BraydenNeale I need add other mib_properties about status of PowerSupply "cpqRackPowerSupplyCondition" of Blade HP:

I update snmpv2_mib.py to add the PowerSupply:

def poll_properties(self):
    mib_properties = [
        '1.3.6.1.4.1.232.22.2.5.1.1.1.17.1.1' #PowerSupply

def get_system_properties(varBinds, props):
    props['PowerSupply'] = str(varBinds[8][1])

But it is not being displayed on "Dynatrace - Properties and tags" of my Device.

When I execute snmpwalk to this OID the result is:
snmpwalk -c public -v 2c 192.168.x.x 1.3.6.1.4.1.232.22.2.5.1.1.1.17.1
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.1 = INTEGER: 2

When I execute snmpwalk of all power supply:
snmpwalk -c public -v 2c 192.168.x.x 1.3.6.1.4.1.232.22.2.5.1.1.1.17
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.1 = INTEGER: 2
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.2 = INTEGER: 2
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.3 = INTEGER: 2
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.4 = INTEGER: 2
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.5 = INTEGER: 2
SNMPv2-SMI::enterprises.232.22.2.5.1.1.1.17.6 = INTEGER: 2

Thanks

Example:
Captura de pantalla de 2020-12-02 18-00-21