4 Replies Latest reply on Jul 21, 2014 7:36 AM by madhavan

    Devices not polling after adding using SDK

    jdtruman

      Using PS to add devices and update custom properties using SDK (been working a long time), the devices get added to the correct polling engine but never poll after that (show active).  Using NPM 10.7 with SDK v 1.5.  Are there any known issues using the PollNow command within PS?  Is anyone else experiencing the same?

       

      Thanks,

      Denise

        • Re: Devices not polling after adding using SDK
          RichardLetts

          post your script that creates them.

           

          I seem to recall that if you don't update the ipguid then polling doesn't happen, there might be other things that are missing that stop polling -- search my previous posts for the perl script I use to create nodes.

          Many [unmentioned] values have to be set to -2 to make the UI less buggy.

           

          [this is a case where a database trigger on update or insert to calculate values that value would save a ton of programming effort]

            • Re: Devices not polling after adding using SDK
              nhakimjee

              Hi Richard, I am having the same issue. When I create a node via the REST api it does not poll and the node details panel is empty. I tried adding the properties that you had outlined in your previous post but I could not via the REST api. I kept getting 400 - Bad Request, so I finally commented out those properties and was able to add the node. When I send a pollNow request to my node, all I get back from the REST api is null (no errors).

               

              Any ideas?

               

              Thanks,

               

              Nuruddin

                • Re: Devices not polling after adding using SDK
                  madhavan

                  Hi,

                   

                  I've provided the REST api sample below which I used to create a node and assign pollers. It does work and polling happens. Please let me know if there is something missing/ added in your script from what is provided below. If not provide the script that you use for creating the node via REST.

                  Details provided for creating node are just samples. Provide your node IP and other information when running the same.

                   

                  curl -k -u admin: -X POST -H "Content-Type: application/json" https://localhost:17778/SolarWinds/InformationService/v3/Json/Create/Orion.Nodes -d @"CreateNode.txt"

                   

                  Contents of CreateNode.txt

                   

                  {    "EntityType":"Orion.Nodes",

                      "IPAddress":"10.10.1.1",

                      "IPAddressGUID":"044648a4-0000-0000-0000-000000000000",

                      "Caption":"",

                      "DynamicIP":"false",

                      "EngineID":"1",

                      "Status":"1",

                      "UnManaged":"false",

                      "Allow64BitCounters":"false",

                      "SysObjectID":"",

                      "MachineType":"",

                      "VendorIcon":"",

                      "ObjectSubType":"SNMP",

                      "SNMPVersion":"2",

                      "Community":"public",

                      "RediscoveryInterval":"5",

                      "PollInterval":"120",

                      "StatCollection":"10",

                      "BufferNoMemThisHour":"-2",

                      "BufferNoMemToday":"-2",

                      "BufferSmMissThisHour":"-2",

                        "BufferSmMissToday":"-2",

                        "BufferMdMissThisHour":"-2",

                        "BufferMdMissToday":"-2",

                        "BufferBgMissThisHour":"-2",

                        "BufferBgMissToday":"-2",

                        "BufferLgMissThisHour":"-2",

                        "BufferLgMissToday":"-2",

                        "BufferHgMissThisHour":"-2",

                        "BufferHgMissToday":"-2"

                  }

                   

                  A node will be polled only when a poller is assigned to it. Provided the script for the same. You can change the PollerType based on your need.

                   

                  curl -k -u admin: -X POST -H "Content-Type: application/json" https://localhost:17778/SolarWinds/InformationService/v3/Json/Create/Orion.Pollers -d @"C:\Users\Administrator\Desktop\c\CreatePollers.txt"

                   

                  Contents of CreatePollers.txt

                   

                  {

                      "NetObject":"N:1",

                      "NetObjectType":"N",

                      "NetObjectID":"1",

                      "PollerType":"N.Details.SNMP.Generic"

                  }

              • Re: Devices not polling after adding using SDK
                jdtruman

                Okay, so I commented out the PollNow Command and still the next poll time stays at the time the node was added.  Not sure this will help but, if I change the node to a different poller and then back to where it's supposed to be the next poll time is correct.  Any thoughts....

                 

                Thanks,

                Denise