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. Polling Definitions

Polling Definitions

Scheduled Pinned Locked Moved Support
10 Posts 2 Posters 44.9k 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.
  • L
    L
    lindeamon
    wrote on last edited by
    #1

    hi,

    how can i disable the agent polling for all the switches instead of checking it 1 by 1 ?
    10x,
    Lindeamon

    1 Reply Last reply
    0
    • L
      L
      lindeamon
      wrote on last edited by
      #2

      i have created a container and added an auto bind rule as follows:

      sub main()
      {
      return ($node->snmpOID == "<oid number>");
      }

      but other nodes with different oid's were binded too,how come ?

      10x,
      Lindeamon

      1 Reply Last reply
      0
      • L
        L
        lindeamon
        wrote on last edited by
        #3

        found the problem to my 2nd post and the problem was that the oid is written in the node's properties with a trailing dot as it should but the this dot confused the script.
        still need an answer to my 1st post

        10x,
        lindeamon

        1 Reply Last reply
        0
        • L
          L
          lindeamon
          wrote on last edited by
          #4

          sorry but i was wrong.deleting the trailing dot unbinded everything.back to square 1.

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

            Could you please post exact script code and actual SNMP OID value? Script posted earlier looks correct, so I suppose some typo or similar error when defining OID.

            Best regards,
            Victor

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

              @lindeamon said in Polling Definitions:

              how can i disable the agent polling for all the switches instead of checking it 1 by 1 ?

              Unfortunately it's not possible.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • L
                L
                lindeamon
                wrote on last edited by
                #7

                here is the exact script:

                sub main()
                {
                return ($node->snmpOID == ".1.3.6.1.4.1.9.1.516");  //(this is the oid of the cisco 3750 switch)
                }

                now it bind all of the nodes having this oid but it also adds nodes whith this oid .1.3.6.1.4.1.789.2.3 (this is the oid of netapp fas270).

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

                  Hi!

                  Yes, it's a bug in NXSL interpreter. It erroneously interprets OID as floating point number. As a workaround, you can replace == with like operation:

                  return ($node->snmpOID like ".1.3.6.1.4.1.9.1.516");
                  

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • L
                    L
                    lindeamon
                    wrote on last edited by
                    #9

                    thank you victor,

                    will this be repaired in the versions to come or should i remember this for the future ?

                    Best Regards,
                    Lindeamon

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

                      It's definitely a bug so it will be fixed in 1.1.6.

                      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