Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Node created from API never gets polled

$
0
0

When I create a node and add pollers through the API, the node never seems to get polled.  The node status never changes, I don't get get descriptive information like the node's name, vendor, etc. and it doesn't collect cpu, mem, volume, or interface statistics.  If I add the node through the Solarwinds GUI, everything works as it should.

 

I am using the Python SDK and my Orion Platform is 2015.1.2 (NPM 11.5.2).  Here is the relevant code I'm using trying to add a Cisco router.

 

swis = SwisClient(host, user, pass)

request =  swis.create("Orion.Nodes", IPAddress="192.168.1.1", EngineID=1, ObjectSubType="SNMP", SNMPVersion=2, Community="public")

 

At this point, the node has been added.  I can see it in Solarwinds "Manage Nodes" but it has no name or any other information associated with it because it hasn't been polled yet.

 

#In these queries, I'll use a hard coded NodeId just to demonstrate, assume the NodeId is 100

request = swis.create("Orion.Pollers", NetObject="N:100", netObjectType="N", netObjectID=100, PollerType="N.Status.ICMP.Native")

request = swis.create("Orion.Pollers", NetObject="N:100", netObjectType="N", netObjectID=100, PollerType="N.ResponseTime.ICMP.Native")

request = swis.create("Orion.Pollers", NetObject="N:100", netObjectType="N", netObjectID=100, PollerType="N.Details.SNMP.Generic")

request = swis.create("Orion.Pollers", NetObject="N:100", netObjectType="N", netObjectID=100, PollerType="N.Uptime.SNMP.Generic")

 

At this point, the pollers have been successfully added but nothing else has changed, I don't see status or additional node info, etc.  I have tried doing a "Poll Now" from the Solarwinds GUI and also invoking a "PollNow" through the API but I still get nothing.  The node just shows status "Unknown".  Now, if I do a "List Resources" from the Solarwinds GUI on the node, I can see all the routing topology, interfaces, etc. (and if I add these items, I can see these pollers are getting added in the DB.  Though if I add, say an interface now, I still can't get interface statistics because the node never appears to get polled).

 

Does anyone know what I might be doing wrong here?


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>