Here is a CPU Load Sensor avalaible for Linux system.
By changing the bash you can probably use it with Windows.
Control that nobody hack the sh file, it must contain the following text :
#!/bin/bash
TEMPO=600
sleep 30
while true
do
tpscpu=`ps aux | awk '{ print $3,$11 }' | grep mono | cut -d' ' -f1`
memcpu=`ps aux | awk '{ print $4,$11 }' | grep mono | cut -d' ' -f1`
vszmem=`ps aux | awk '{ print $5,$11 }' | grep mono | cut -d' ' -f1`
rssmem=`ps aux | awk '{ print $6,$11 }' | grep mono | cut -d' ' -f1`
curl "http://127.0.0.1/api/HomeAutomation.HomeGenie.Automation/CPUData/Sensor.LoadMem/$memcpu"
echo " LoadMem=$memcpu"
curl "http://127.0.0.1/api/HomeAutomation.HomeGenie.Automation/CPUData/Sensor.LoadTime/$tpscpu"
echo " LoadTime=$tpscpu"
curl "http://127.0.0.1/api/HomeAutomation.HomeGenie.Automation/CPUData/Sensor.RSSMem/$rssmem"
echo " RSSMem=$rssmem"
curl "http://127.0.0.1/api/HomeAutomation.HomeGenie.Automation/CPUData/Sensor.VSZMem/$vszmem"
echo " VSZMem=$vszmem"
sleep $TEMPO
done
If you want to activate that bash automatically you can use with some modifications of the bash :
sudo update-rc.d CPUDtata.sh defaults // to put it on debian runlevel.