Ad Widget

Collapse

Discovery error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyue
    Member
    • Jan 2016
    • 93

    #1

    Discovery error

    Hi guys,

    I'm having the error message when creating discovery rules to discover temperature of cisco 4507. I'm using zabbix 3.0.

    FYI, 1.3.6.1.4.1.9.9.13.1.3.1.2 is the temperature description and 1.3.6.1.4.1.9.9.13.1.3.1.3 is the temperature value

    Error message
    -----------------
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air inlet]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air inlet remote]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air outlet]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air outlet remote]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air inlet]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air inlet remote]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air outlet]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Air outlet remote]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Stub A]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[Stub B]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[XPP]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[VFE]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[NFE]" already exists.
    Cannot create item: item with the same key "ciscoEnvMonTemperatureStatusValue[CPU]" already exists.
    Cannot create item: item with the same key "ciscoEnvM.....

    Discovery rules configuration
    ----------------------------------
    Name : Temperature
    Key : ciscoEnvMonTemperatureStatusDescr
    SNMP OID : discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]

    Discovery rule's Item
    -----------------------------------
    Name : Temperature of $1
    Key : ciscoEnvMonTemperatureStatusValue[{#SNMPVALUE}]
    SNMP OID : 1.3.6.1.4.1.9.9.13.1.3.1.3.{#SNMPINDEX}

    Can anyone advise where i did the wrong ?
    Thank you very much in advance.
    Last edited by Xyue; 10-05-2016, 09:31.
  • Xyue
    Member
    • Jan 2016
    • 93

    #2
    Hi Guys,

    I have figure out why the discovery always return error. I have run the OID through snmpwalk and found that the description are all the same.

    [root@zabsrv ~]# snmpwalk -v2c -c zabbix 10.32.250.20 1.3.6.1.4.1.9.9.13.1.3.1.2
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "Air inlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.2 = STRING: "Air inlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.3 = STRING: "Air outlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.4 = STRING: "Air outlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.11 = STRING: "Air inlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.12 = STRING: "Air inlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.13 = STRING: "Air outlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.14 = STRING: "Air outlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.41 = STRING: "Air inlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.42 = STRING: "Air inlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.43 = STRING: "Air outlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.44 = STRING: "Air outlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.51 = STRING: "Air inlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.52 = STRING: "Air inlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.53 = STRING: "Air outlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.54 = STRING: "Air outlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.61 = STRING: "Air inlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.62 = STRING: "Air inlet remote"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.63 = STRING: "Air outlet"
    SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.64 = STRING: "Air outlet remote"

    Can anyone advise me how to set this using discovery ?

    * I was able to setup the discovery if the description are different.
    Last edited by Xyue; 11-05-2016, 10:58.

    Comment

    • Xyue
      Member
      • Jan 2016
      • 93

      #3
      Hi Guys,

      I have sorted out how to discover since value are the same.

      In the discovery rules, i still let it discover the description although the value are the same.

      Discovery Rules
      --------------------------
      Name : Temperature
      Key : ciscoEnvMonTemperatureStatusDescr
      OID : discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.3.1.2]

      I fine tune the name in the item. Instead of using the SNMPVALUE, i use the SNMPINDEX so it won't give me below error.

      After change the Name to SNMPINDEX, it shows as below which works fine.
      ciscoEnvMonTemperatureState[64]
      ciscoEnvMonTemperatureState[63]
      ciscoEnvMonTemperatureState[62]
      ciscoEnvMonTemperatureState[61]
      ciscoEnvMonTemperatureState[54]
      ciscoEnvMonTemperatureState[53]
      ciscoEnvMonTemperatureState[52]

      The configuration as below.

      Discovery Item
      --------------------
      Name : Temperature of {#SNMPINDEX}
      Key : ciscoEnvMonTemperatureState[{#SNMPINDEX}]
      OID : 1.3.6.1.4.1.9.9.13.1.3.1.6.{#SNMPINDEX}

      Hope this can help others who have the same error like me.

      Comment

      Working...