Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Cannot read measurement unit information: Illegal repetition

Cannot read measurement unit information: Illegal repetition

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 14.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    cbwecomm
    wrote on last edited by
    #1

    I've been able to figure out how to poll a lot of information from SNMP, but as I'm trying to dump this into dashboards, I'm receiving the following error:

    Cannot read measurement unit information: Illegal repetition near index 28
    .1.3.6.1.4.1.41112.1.4.7.1.3.{instance}

    Some google searching reveals that the java implementation of regex requires \\ before the { however with various attempts/changes and more searching, I'm not finding anything that works and doesn't break what I already have working 🙂

    Since I don't quite know what I'm doing, I'm not sure if this is an issue with the script in Instance Discovery, or if there is a bug of some sort when building dashboards, that doesn't like an SNMP OID that references {instance}.

    1 Reply Last reply
    0
    • C
      C
      cbwecomm
      wrote on last edited by
      #2

      Sadly, I think I understand what's happening here... and this just isn't possible. 

      Am I correct?   

      Is there any way to define a DCI and then, also, tell it to ignore the last n characters of the OID based on the context?

      1 Reply Last reply
      0
      • C
        C
        cbwecomm
        wrote on last edited by
        #3

        Oh.   *facepalm*  I just drop the {instance} and it matches the DCI for the node... haha.

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          Yes, {} characters are interpreted as part of regular expression. These fields will be renamed, e.g. "DCI name regular expression" to give more understanding.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups