Hi,
I am using SolarWinds Orion API to create a node , discover and add interfaces.
I don't know which API to use to check The CPU & Memory option in the List Resources for the node.
It's not an API, it's a "poller" as defined in the API. There are many available, but what I've always done is to find a similar (identical if possible) device and use it's list of poppers as a template. Then just add them with the other element's Node ID.
Good Morning,
I did create a node using POST /SolarWinds/InformationService/v3/Json/Create/Orion.Nodesthen I go t alist of interfaces using POST /SolarWinds/InformationService/v3/Json/Invoke/Orion.NPM.Interfaces/DiscoverInterfacesOnNode this will return all the interfaces then I choose the interface that are up and use : POS /SolarWinds/InformationService/v3/Json/Invoke/Orion.NPM.Interfaces/AddInterfacesOnNode
when I use the solarwinds UI by clicking on the List Resources : I can see the selected interfaces chosen but I want also the CPU & Memory option checked let me know which pollers to use ???
Thanks.
Hamid.
This will depend on the type of device added. Like I said, your best bet is to find a device of the same type that you can use as a "template" and then query for what pollers are enabled.
SELECT [Nodes].MachineType , [Nodes].Caption , [Pollers].PollerType , [Pollers].NetObject , [Pollers].NetObjectType , [Pollers].NetObjectID , [Pollers].EnabledFROM Orion.Pollers AS [Pollers]INNER JOIN Orion.Nodes AS [Nodes] ON [Nodes].NodeID = [Pollers].NetObjectID-- Only show node-based pollersWHERE [Pollers].NetObjectType = 'N'ORDER BY [Nodes].Description , [Nodes].Caption , [Pollers].PollerType
Down on line 38 of orionsdk-python/add_node.py at master · solarwinds/orionsdk-python (github.com) it shows how to build the pollers. (I'm assuming you are using python from the endpoints you are describing)