Ad Widget

Collapse

macro used in SNMP key giving error on creation of item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akansha123
    Member
    • Jun 2016
    • 54

    #1

    macro used in SNMP key giving error on creation of item

    Hi,

    In SNMP monitoring, key does not play any role as SNMP OID is there. But key cannot be blank so I have given snmp in key.Item is created fine.

    But when macro is used in key "snmp.{$IFOID10}" error "Invalid key "snmp.{$IFOID10}" for item "snmp.{$IFOID10}" on "t00Windows": incorrect syntax near "{$IFOID10}"." is generated while using macro in key ifInOctets.{$IFOID10}

    Why it is happening as key is not important in this case still it is producing error on using macro in it


    Thanks in Advance
  • peatb
    Zabbix Certified Trainer
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2016
    • 36

    #2
    The key is not important in the measuring of the item, but it is important in identifying the item. Each item on a host must have an unique key.

    The syntax of the key you use doesn't work. The parameter must be between brackets, so if you change the key to snmp[{$IFOID10}] you're one step further. But that will still not work, as each discoverd item will get that key. You need to use one of the discovery macros in the key.

    For instance: snmp[{#SNMPINDEX}] or snmp[{$IFOID10},{#SNMPINDEX}]

    This will create a unique key on each discovered item

    Comment

    Working...