I have a large number of linux systems for which I need to do a number of SolarWinds configuration tasks, but lets pick one:
The systems have registered themselves by running swiagent in push mode. By default, they're monitoring CPU and memory and network traffic. I want them to monitor specific file system mounts (/, /tmp, and /var) and not others (not /boot, since it doesn't change, and not /projects, because it's an NFS mount - monitor that on the filer).
I'd like to automate turning on that monitoring from the Linux systems themselves, and the RESTful API would seem to be a good way to do that. I presume I need to retrieve the NodeID, then retrieve some identifier for the volume, then invoke some verb to enable monitoring of the volume.
These curl invocations work:
curl --user 'swiagent:*************' -k https://10.1.1.248:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+Uri+FROM+Orion.Nodes+WHERE+Caption+=+\'apk0clio00\' | python -mjson.tool
curl --user 'swiagent:*************' -k https://10.1.1.248:17778/SolarWinds/InformationService/v3/Json/swis://pdx0netmgmt01.tqs.com/Orion/Orion.Nodes/NodeID=6079 | python -mjson.tool
But this doesn’t:
curl --user 'swiagent:*************' -k https://10.1.1.248:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+Uri+FROM+Orion.Nodes.Volumes+WHERE+NodeID=6079 | python -mjson.tool
I feel like there's important things I don't understand, and I don't know how to find the answers - and my search results show I don't know how to ask the questions.