Giter Club home page Giter Club logo

Comments (8)

carlpett avatar carlpett commented on May 13, 2024

Hi!
That would be interesting for sure. However, I don't seem to get any values in those WMI classes. Do your systems report anything there?

from windows_exporter.

sandersaares avatar sandersaares commented on May 13, 2024

https://github.com/openhardwaremonitor/openhardwaremonitor reports useful hardware stats and appears to do some of it through WMI queries. Perhaps this would be a useful source of inspiration.

from windows_exporter.

carlpett avatar carlpett commented on May 13, 2024

@sandersaares I had a quick browse through the code, and as far as I can tell, they don't use WMI for actually getting temperatures etc, but only for probing what hardware is installed? They do register a custom WMI provider as well, which I couldn't see what they actually used for, though.
Did you see any concrete usage of WMI to get the temperatures that I missed?

from windows_exporter.

sandersaares avatar sandersaares commented on May 13, 2024

No, I just quickly rifled through the code and saw some WMI but I also did not see too direct of a connection. Guess it is no good then.

from windows_exporter.

CasparChou avatar CasparChou commented on May 13, 2024

hi @carlpett , actually, we really need this index. I have several windows machine for digital signage. They are installed inside the bus stop smartpole, digital advertising box. They are often overheating and make windows system slowly. I need these cpu temperature index to verify is it overheating or not.

for now our solution is login into remote iot computer and open some GUI software to check cpu temperature. but I will never know when it will happen, unless I have this index to report to our prometheus

from windows_exporter.

StewartThomson avatar StewartThomson commented on May 13, 2024

The documentation above states that

Most of the information that the Win32_TemperatureProbe WMI class provides comes from SMBIOS. Real-time readings for the CurrentReading property cannot be extracted from SMBIOS tables. For this reason, current implementations of WMI do not populate the CurrentReading property. The CurrentReading property's presence is reserved for future use.

I played around this script and found that the temperature returned is unchanging likely because of the issue above.

Unless there's features elsewhere, it looks like WMI doesn't support temperature readings at this time, unfortunately

Edit: After playing around with that script some more & reading more documentation on MSAcpi_ThermalZoneTemperature, it looks like that will work on some systems where the hardware allows it. I have seen the temperature change at this point, though it doesn't seem to be real time. Could be worth investigating

from windows_exporter.

StewartThomson avatar StewartThomson commented on May 13, 2024

This is promising. Ran some bench marks and the value seems to be updating in real time

wmic /namespace:\\root\cimv2 PATH Win32_PerfFormattedData_Counters_ThermalZoneInformation get Temperature

from windows_exporter.

carlpett avatar carlpett commented on May 13, 2024

With the merge of #359, we can close this. Thanks Stewart!

from windows_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.