We are front ending SAM 6.2 with a BI tool to consolidate dashboards. I would like to display CPU for a subset of hosts. What woudl the SQL query look like?
Login to the SolarWinds server, launch the Report Writer tool. Build a new report or modify an existing one, Then use the View, Show SQL option to reveal the SQL query that would be used to run the report.
This should do what you need
SELECT Nodes.NodeID AS NodeID, Nodes.Caption AS NodeName, Nodes.CPULoad AS CPULoad FROM Nodes WHERE ( (Nodes.CPULoad >= 0))
ORDER BY CPULoad DESC