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. Instance Discovery questions

Instance Discovery questions

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 21.3k 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.
  • T
    T
    touton
    wrote on last edited by
    #1

    Hello,

    I'm trying to use Instance Discovery with SNMP values.

    Is there a way to modify DCI description ? I wanted to add dci per interfaces, and currently I can just concatenate interface ID with a text. Is it possible to change $dci->description value ? I've tried to do this in the filter script with no luck.

    I also tried to use trace function, but it looks to be inactivated 😞

    Last thing, I've tried to SNMP walk OID with this one : .1.3.6.1.2.1.2.2.1.16 (64bits values). I've got no result (I've cut and paste a config from Victor without success)
    https://www.netxms.org/forum/configuration/instance-discovery-filter-scrip/msg10449/#msg10449

    Thanks for your feedback

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Currently it's not possible to rename DCIs created via instance discovery. I'll think what I can do for this in the future.

      Trace function should work. Do you get other debug messages in the log? Maybe you specify debug level higher then actually enabled?

      Do your device supports 64-bit interface counters? When you do SNMP walk on .1.3.6.1.2.1.2.2.1.16 in MIB explorer, do you get results? Also, don't forget that instance discovery occurs at configuration poll, so you won't see new DCIs until next configuration poll (you can run it manually as well).

      Best regards,
      Victor

      1 Reply Last reply
      0
      • T
        T
        touton
        wrote on last edited by
        #3

        Trace function should work. Do you get other debug messages in the log? Maybe you specify debug level higher then actually enabled?

        Yes, I've opened a session on the server and tail netxmsd log file, I've also opened a server console and key in debug 1 (tried also for fun debug 9 : tail went crazzy).

        Do your device supports 64-bit interface counters? When you do SNMP walk on .1.3.6.1.2.1.2.2.1.16 in MIB explorer, do you get results?

        Yes I've made a try, and it founded values. I've reused the same settings with a regular interface OID, and it works so I really think issue is related with extended OID.

        don't forget that instance discovery occurs at configuration poll

        I'm doing my modifications, save, and close data collection configuration tab. I've also found that it is better to delete all the discovered DCI in the node Data Collection Configuration window before manually starting poll/Configuration on the node

        1 Reply Last reply
        0
        • S
          S
          sperlm
          wrote on last edited by
          #4

          I have to admit I have troubles with using trace too. I even created script to flood all trace levels with a simple message and try to run it in console whenever I need to restart server (and start it with yet another level of debug) and look in all logs I can.
          Btw there is no log called "main log" specifically - I might be looking at wrong places ?

          As for the DCI description customization... {instance} is a lil bit clumsy for naming purposes but working. What are you trying to achieve?

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #5

            Just checked trace. I've created simple script:

            for(i = 0; i <= 9; i++)
            	trace(i, "Trace at level " . i);
            

            and run it on my test server console (with debug level set to 6). Output is as expected:

            netxmsd: exec c:\temp\trace.nxsl
            [20-Jun-2013 12:32:15.828] Trace at level 0
            [20-Jun-2013 12:32:15.828] Trace at level 1
            [20-Jun-2013 12:32:15.828] Trace at level 2
            [20-Jun-2013 12:32:15.828] Trace at level 3
            [20-Jun-2013 12:32:15.828] Trace at level 4
            [20-Jun-2013 12:32:15.828] Trace at level 5
            [20-Jun-2013 12:32:15.828] Trace at level 6
            INFO: Script finished with rc=0
            
            netxmsd:
            

            Best regards,
            Victor

            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