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

    Devices not polling after adding using SDK


      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?




        • Re: Devices not polling after adding using SDK

          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

              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?





                • Re: Devices not polling after adding using SDK



                  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",
































                  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








              • Re: Devices not polling after adding using SDK

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