How to assign specific poller to a node - solarwinds/OrionSDK GitHub Wiki
The assignment is done automatically based on OID support by that specific Node. Specific Poller can be assigned to the Node via SDK using its name.
In order to assign a poller you should use the Orion.Pollers
entity. To assign a custom poller to a node, you need the poller's name (N.Status.SNMP.Native
in the example below) and the node id (123).
https://{IP}:17778/SolarWinds/InformationService/v3/Json/Create/Orion.Pollers
Authorization: {{basicAuthorization}}
Content-Type: application/json
{
"NetObject": "N:123",
"NetObjectType": "N",
"NetObjectID": 123,
"PollerType": "N.Status.SNMP.Native"
}
Returns new record's Uri if the operation is successful.
You can also unassign specific poller by removing it from the Orion.Pollers
entity using its Uri. To get the Poller Uri for specific node you can use the following request:
https://{IP}:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT Uri, PollerType FROM Orion.Pollers WHERE NetObject = 'N:{Node ID}'
Authorization: {{basicAuthorization}}
Content-Type: application/json
{
"results": [
{
"Uri": "swis://HOSTNAME/Orion/Orion.Pollers/PollerID=7105",
"PollerType": "N.ResponseTime.ICMP.Native"
}
]
}
https://{IP}:17778/SolarWinds/InformationService/v3/Json/{SwisUri}
Authorization: {{basicAuthorization}}
Content-Type: application/json
See NPM Universal Device Pollers section for the instructions.