NPM monitoring 101: When listing resources on a node you always want to check CPU & Memory.
Our enterprise monitoring standard states that, if available, we have to monitor CPU & Memory. Instead of manually checking nearly 11,000 nodes I ran a quick SQL query to check for CPU statistics in the CPULoad view. (Note: CPULoad is not a table per se, but a view. If you are digging through the DB you'll find it under views, not tables).
SELECT Caption, IP_Address, OwnerGroup FROM Nodes
LEFT JOIN CPULoad ON Nodes.NodeID = CPULoad.NodeID
WHERE Nodes.ObjectSubType IN('SNMP','WMI') AND CPULoad.NodeID IS NULL AND Nodes.Status = 1
ORDER BY Caption
The number it returned shocked me. How is it possible that there were that many nodes that we had missed check the CPU & Memory checkbox?! I started to do a little digging. I didn't find any nodes that were missing the checkbox but, when I checked the node details page the graph said there was no data and there was definitely no data in the CPULoad table.
While I am still digging into where my CPU statistics are for these nodes I wonder if there is another query that I can run to check to see if we actually checked the checkbox? Any ideas?