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 Options Under Node

Polling Options Under Node

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 6.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.
  • M
    M
    m1975Michael
    wrote on last edited by
    #1

    How can I configure multiple nodes polling options. For example I need to configure a group of nodes to not get stats from ICMP pings and disable NetXMS agent polling.  Any assistance would be greatly appreciated.  Thank you.

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

      Hi!

      You have two options, and both requires script creation. One is to use nxshell script - there is an example of how to disable SNMP polling: http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations#Disable_SNMP_polling_for_node. Other option is to use NXSL script on server - you can use node enumeration example: http://wiki.netxms.org/wiki/Script_Example:_Enumerate_All_Nodes and add calls to methods enableAgent, enableConfigurationPolling, enableIcmp, enableSnmp, enableStatusPolling, enableTopologyPolling on node objects as needed. Each of these methods accepts true or false as parameter. For example, to disable agent for node you can call

      n->enableAgent(false);

      assuming that you have reference to node object in a variable n.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • M
        M
        m1975Michael
        wrote on last edited by
        #3

        @victor said in Polling Options Under Node:

        Hi!

        You have two options, and both requires script creation. One is to use nxshell script - there is an example of how to disable SNMP polling: http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations#Disable_SNMP_polling_for_node. Other option is to use NXSL script on server - you can use node enumeration example: http://wiki.netxms.org/wiki/Script_Example:_Enumerate_All_Nodes and add calls to methods enableAgent, enableConfigurationPolling, enableIcmp, enableSnmp, enableStatusPolling, enableTopologyPolling on node objects as needed. Each of these methods accepts true or false as parameter. For example, to disable agent for node you can call

        n->enableAgent(false);

        assuming that you have reference to node object in a variable n.

        Best regards,
        Victor

        Thank you Victor for the information.  I like the bulk disable SNMP but I am not sure what options are available besides SNMP.  I would like to disable NetXMS agent for all pulls and disable usage of ICMP pings for status polling but I am not sure what to replace DISABLE_SNMP with.  I was looking in the scripting section but I have not found those specific options unless I am looking in the incorrect place.  Thank you for your continued assistance.

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

          Hi!

          Valid options are:

          NF_DISABLE_DISCOVERY_POLL
          NF_DISABLE_TOPOLOGY_POLL
          NF_DISABLE_SNMP
          NF_DISABLE_NXCP (to disable agent)
          NF_DISABLE_ICMP
          NF_FORCE_ENCRYPTION
          NF_DISABLE_STATUS_POLL
          NF_DISABLE_CONF_POLL
          NF_DISABLE_ROUTE_POLL
          NF_DISABLE_DATA_COLLECT

          It's a bit mask, so you can combine multiple flags using bitwise OR operation, like this:

          newFlags = node.getFlags() | Node.NF_DISABLE_SNMP | Node.NF_DISABLE_ICMP
          

          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