0

I setup a new server for Zabbix 3.0 and I was able export the hosts from 2.4.5 and then import them into the new instance. But the SNMP OID that I used in 2.4.5 seems to be invalid in 3.0?

The error I'm receiving is.... INVALID SNMP OID: cannot parse expression

This is what I used. Type: SNMPv2 agent Key: ifDescr SNMP OID: IF-MIB::ifDescr Exactly the same setup. Am I missing a piece somewhere?

  • What makes you think the OID is invalid? What error do you get? – asaveljevs Jul 20 '16 at 14:18
  • Sorry, I probably should have added that. The error is: Invalid SNMP OID: Cannot parse expression. – Stratag3m Jul 20 '16 at 14:30
1

For imported templates and hosts you must manually change the LLD rule SNMP OID (the syntax changed) - see this what's new entry.

If you would like to see the import process properly updating the syntax, please vote on this bugreport.

| improve this answer | |
  • Thanks. I've been playing with this but it's still not working. So under host / discovery rule the SNMP OID should be something like discovery[{IF-MIB::ifDescr}, ifDescr] ? – Stratag3m Jul 21 '16 at 14:09
  • Not like that - if you only want ifDescr, more like discovery[{#IFDESCR}, IF-MIB::ifDescr] (but make sure to match the macro name to whatever is used in prototypes) – Richlv Jul 27 '16 at 15:09
  • Thanks. That cleared the error but I still don't see what I used to have. All I want at the moment is inbound and outbound traffic. That's it. It does allow me to see incoming traffic on Template SNMP Interfaces: Incoming traffic on Interface{#SNMPVALUE} but I can't choose the interface. Do I change the SNMPVALUE to the interface? – Stratag3m Jul 28 '16 at 17:45
  • So your prototypes use a different LLD macro. Match it in the LLD rule, possibly like this: discovery[{#SNMPVALUE}, IF-MIB::ifDescr] . – Richlv Jul 29 '16 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.