Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Worked great! I just modified the script a little to separate the temperatures for my CPU and Hard Drives so they report to Nagios and graph separately. All I did was create two instances of the script and change the following for each file.
Changed “-Query “SELECT + FROM Sensor WHERE Sensortype=’Temperature'”
to
“-Query “SELECT + FROM Sensor WHERE Name=’core #1 – #8′” — To display CPU temp
and
“-Query “SELECT + FROM Sensor WHERE Name=’Temperature'” — To display the temps of the Hard Drives
The “Name” might be different depending on your hardware, but if you run :
Get-WmiObject -Namespace “RootOpenHardwareMonitor” Class: sensor
From Powershell while OpenHardwareMonitor is running it will give you a list of all the sensors and their names that are being monitored.
I’m running : Nagios® Core Version 4.3.2 OpenHardwareMonitor 0.8.0 Beta