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. DCI based on SNMP trap.

DCI based on SNMP trap.

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 10.0k 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.
  • R
    R
    romb
    wrote on last edited by
    #1

    Basically I want to have chart for status received by SNMP trap.
    It looks like I should use DCI for this. How I can configure DCI to use SNMP trap results for value?

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

      Hi,

      currently it's not possible. I'll add a feature request for NXSL data push function - then you'll be able to use action script for pushing DCI data.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • R
        R
        romb
        wrote on last edited by
        #3

        Thank you. Where I can track this?

        1 Reply Last reply
        0
        • Z
          Z
          Tatjana Dubrovica
          wrote on last edited by
          #4

          https://www.radensolutions.com/chiliproject/issues/677

          1 Reply Last reply
          0
          • Z
            Z
            Tatjana Dubrovica
            wrote on last edited by
            #5

            Functionality implemented and will be available in next release.
            Function looks like this: PushDCIData(node, dciId, value)

            1 Reply Last reply
            0
            • R
              R
              romb
              wrote on last edited by
              #6

              Thank you for this great feature.
              Looks like there is little problem somewhere.
              I have 2 scripts.
              First runs on problem snmp trap:

              PushDCIData($node,444,1);
              PushDCIData($node,444,0);
              return true;
              

              Second runs on restore snmp trap:

              PushDCIData($node,444,0);
              PushDCIData($node,444,1);
              return true;
              

              So I should get beautiful graph with status from 0 to 1.
              But sometimes line goes aslant from one event to another instead of forming rectangular shape. Looks like sometimes PushDCIData($node,444,0) in second script does nothing. How this can be fixed?

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

                Hi,

                server do not expect two values within one second. You can try to put sleep call (https://wiki.netxms.org/wiki/NXSL:sleep) between two push calls to guarantee at least second interval between values.

                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