vla7 / telegraf_windows_cpu_temperature

Telegraf collect windows CPU temperature via OpenHardwareMonitor
10 stars 1 forks source link

telegraf not collecting data #1

Open djsomi opened 2 years ago

djsomi commented 2 years ago

Hi,

Thanks for this stuff, I just wated to test it out but with the recent version of OHM, and telegraf its not working for me.

I found that the PS script should run this:

get-wmiobject -namespace root\OpenHardwareMonitor -query 'select value,name,Parent from Sensor where SensorType="Temperature" and Name LIKE "%CPU%"'

What gives me correct data, but Telegraf is not running, or not posting it to db for some reason. Its not dropping any error in the output, just simply not sendig data to DB.

Can you please what can be the probelm?

Many Thanks Zoli

vla7 commented 2 years ago

Hello. I did not face such problems. Seems I should archive this repo as I not working with Telegraf now.

djsomi commented 2 years ago

Sorry, my bad, I did not checked DB properly. Telegraf is sending data, the only change I had to make is the %CPU% in PS script, also on my AMD based machine I had to change it to %CORE% to grab core temps.

Check your variables with this command and adjust as needed:

get-wmiobject -namespace root\OpenHardwareMonitor -query 'select * from Sensor'