First, in HWiNFO, tag any sensors you want to monitor for the Vista gadget. This causes HWiNFO to populate registry keys with the relevant data. You’ll then need to make a custom plugin for CheckMK in C:\Program Files (x86)\checkmk\plugins named “hwinfo64.cmd”, containing the following;
Now, do a test on your CheckMK server, you should see the «
Apologies for the terrible Python, my Python is very weak. Also note that this assumes that all temperature-type sensors are in Celsius units, and all fan-type sensors are in RPM units.
Once that’s done, you should be able to add services to your host and the HWiNFO sensors will be automatically inventoried and show up. They will use some default thresholds. In order to customize those thresholds, edit etc/check_mk/main.mk in your OMD site and do something like this;
That will set the warning/crit threshold for CPU temp checks at 70/80 C, and the threshold for GPU checks at 90/100 C, on the machines ‘desktop1’ and ‘desktop2’. Set as appropriate for your environment.