Ad Widget

Collapse

escape character in SNMP OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeroenmgage
    Junior Member
    • Jun 2014
    • 15

    #1

    escape character in SNMP OID

    Hi,

    We have a custom application that has it's own custom MIB. In the OID's there are several items that contain quotes, for example:

    QUINSY-QMOBGATE::dvDriverStatusDelayed."05030300"

    Now, I have added an item, but it fails with the message snmp_parse_oid(): cannot parse OID "QUINSY-QMOBGATE::dvDriverStatusDelayed."05030300"". I've tried using the backslash escape character, but that doesn't seem to work. Also tried using single quotes and all kinds of combination. Is there any way that I could make this work?

    I get a successful response if I use snmpget and use the single quotes around the double quotes.

    Regards,
    Jeroen
    Last edited by jeroenmgage; 07-07-2014, 13:58.
  • jeroenmgage
    Junior Member
    • Jun 2014
    • 15

    #2
    Ok, I've gotten a bit further. I tried the discovery feature and now there are several of these OID's discovered. I tried the same escape characters as in the discovery afterwards ("\"), but that wouldn't work. Now I have a whole list of items in my host, but there is still one strange thing. There is one discovered item (actually the list of them) that is giving me the same parse_oid errors as adding the items manually.

    There is another item, just like it that works fine though.

    QUINSY-QMOBGATE::dvDriverError.{#SNMPINDEX} is working fine.
    OID = QUINSY-QMOBGATE::dvDriverError."05030000" = Counter32: 16973

    QUINSY-QMOBGATE::dvDriverConnections.{#SNMPINDEX} is giving me the following error:
    snmp_parse_oid(): cannot parse OID "QUINSY-QMOBGATE::dvDriverConnections."05030000"".
    OID = QUINSY-QMOBGATE::dvDriverConnections."05030000" = Counter32: 30

    maybe I'm missing something here.

    Regards,
    Jeroen

    Comment

    • jeroenmgage
      Junior Member
      • Jun 2014
      • 15

      #3
      does Zabbix give the parse_oid error too if it can't find the OID for example?

      Comment

      Working...