Ad Widget

Collapse

Zabbix LLD discovery for Cisco- issue with indexs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • batchen_regev
    Member
    • Aug 2018
    • 80

    #1

    Zabbix LLD discovery for Cisco- issue with indexs

    Im using zabbix 4 and making my own snmpv3 template.
    I have an issue that i dont undestand with LLD discovery.

    For example :
    I have this Discovery role :

    name:Power supply status
    type: snmpv3
    key: cefcFRUPowerAdminStatus
    snmp OID: discovery[{#CEFCFRUPOWERADMINSTATUS},.1.3.6.1.4.1.9.9.117.1. 1.2.1.1]

    Discovery item :
    name: Power supply {#SNMPINDEX} status
    type: snmpv3
    key: cefcFRUPowerAdminStatus[{#CEFCFRUPOWERADMINSTATUS}]
    snmp OID: .1.3.6.1.4.1.9.9.117.1.1.2.1.1.{#SNMPINDEX}

    From discovery i get only 1 shows like this in latest data :
    Power supply 2014 status 2019-12-18 18:05:32 on (1)
    result, in snmpwalk i get 6 results :

    snmpwalk -v3 -l authPriv -u zabbix-a SHA -A PASS -x AES -X PASS 10.0.0.2 cefcFRUPowerAdminStatus

    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerAdminStatus.1013 = INTEGER: on(1)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerAdminStatus.1014 = INTEGER: on(1)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerAdminStatus.2013 = INTEGER: on(1)
    CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerAdminStatus.2014 = INTEGER: on(1)

    And in the Monitoring - Host - Discovery i see errors like :
    Cannot create item: item with the same key "cefcFRUPowerAdminStatus[1]" already exists.
    Cannot create item: item with the same key "cefcFRUPowerAdminStatus[1]" already exists.
    Cannot create item: item with the same key "cefcFRUPowerAdminStatus[1]" already exists.

    Its like it cannot create it, why is it trying to create always [1] ? if my index is 2013 2014 1014 1013 ? its like its taking the results ? which is on(1) ?
    I think i miss understood how to do LLD discovery and zabbix only exsample is with ifDescr which doesnt help here.

    Thanks
  • batchen_regev
    Member
    • Aug 2018
    • 80

    #2
    Ok i solved it, it was because the same host has the same item multipul times so i had to change :
    discovery item key: cefcFRUPowerAdminStatus[{#CEFCFRUPOWERADMINSTATUS}]
    To:
    cefcFRUPowerAdminStatus[{#CEFCFRUPOWERADMINSTATUS},.{#SNMPINDEX}]

    so it can create the same item key, it just adds the snmpindex in the end which makes it "different" item key.

    Comment

    Working...