Ad Widget

Collapse

SNMP Disovery Rules and Item Prototypes via Zabbix Proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grey_area
    Junior Member
    • Apr 2022
    • 1

    #1

    SNMP Disovery Rules and Item Prototypes via Zabbix Proxy

    Hello,

    I'm trying to create a discovery rule to enumerate the FRU components of a group of Cisco Nexus 3000 switches. I have found that the
    CISCO-ENTITY-FRU-CONTROL-MIB provides what I need.

    The OID CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerStatusTable returns a group of OIDs and I'm particularly interested in cefcFRUPowerAdminStatus and cefcFRUPowerOperStatus. Looking at these with snmpwalk/snmptranslate produces the following output:

    Code:
    $ snmpwalk -v 2c -c public myhost CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerStatusTable
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerAdminStatus.470 = INTEGER: on(1)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerAdminStatus.471 = INTEGER: on(1)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerOperStatus.470 = INTEGER: on(2)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerOperStatus.471 = INTEGER: offEnvPower(5)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUCurrent.470 = INTEGER: 2810
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUCurrent.471 = INTEGER: 2810
    
    $ snmptranslate -On CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerStatusTable
    .1.3.6.1.4.1.9.9.117.1.1.2
    
    $ snmpwalk -v 2c -c public -On myhost CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerStatusTable
    .1.3.6.1.4.1.9.9.117.1.1.2.1.1.470 = INTEGER: on(1)
    .1.3.6.1.4.1.9.9.117.1.1.2.1.1.471 = INTEGER: on(1)
    .1.3.6.1.4.1.9.9.117.1.1.2.1.2.470 = INTEGER: on(2)
    .1.3.6.1.4.1.9.9.117.1.1.2.1.2.471 = INTEGER: offEnvPower(5)
    .1.3.6.1.4.1.9.9.117.1.1.2.1.3.470 = INTEGER: 2810
    .1.3.6.1.4.1.9.9.117.1.1.2.1.3.471 = INTEGER: 2810
    So I took a look at the article https://www.zabbix.com/documentation...very/snmp_oids and created a discovery rule with the following notable configuration to a new Discovery Rule:

    Type: SNMP Agent
    Key: psu.discovery
    SNMP OID: discovery[{#POWERADMINSTATUS},1.3.6.1.4.1.9.9.117.1.1.2.1.1]

    Then I created an Item prototype with:

    Name: PSU Admin Status {#SNMPINDEX}
    Type: SNMP Agent
    Key: psu.adminstatus[{#SNMPINDEX}]
    SNMP OID: .1.3.6.1.4.1.9.9.117.1.1.2.1.1.[{#SNMPINDEX}]
    Information Type: Numeric unsigned

    If I leave this to run, the device show 2 "other" items in Latest Data with names of "PSU Admin Status 470" and "PSU Admin Status 471" so it is enumerating them, but I'm got getting the integer states back.

    How can I fix this? Thanks.
    `
Working...