windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

There is no Windows_os_* return on a certain Windows

Open chinaxushi opened this issue 11 months ago • 5 comments

ts=2024-03-06T11:10:41.338Z caller=prometheus.go:186 level=error msg="collector os failed after 0.043007s" err="The system cannot find the file specified."

This is a log error

It has been confirmed that there is a return value for the Win32_OperatingSystem class in WMI on the machine

I saw that there were similar issues before, but they all said that the page file problem had been solved.

chinaxushi avatar Mar 06 '24 11:03 chinaxushi

Are you running Windows Server 2012R2? If yes, should be fixed in #1446

jkroepke avatar Apr 20 '24 23:04 jkroepke

It's 2012, but not all Windows 2012 have this issue

chinaxushi avatar Apr 24 '24 00:04 chinaxushi

Could you test this binary for us, if it resolve your issue?

https://github.com/prometheus-community/windows_exporter/actions/runs/8767881067/artifacts/1432390524

jkroepke avatar Apr 24 '24 05:04 jkroepke

Sorry, I only saw the message now. I have tested it and using the version above, the information for Windows_os * has been released. I am not sure if the data is complete. But the previously missing system versions and memory usage are now available.

chinaxushi avatar Apr 25 '24 06:04 chinaxushi

I also ran version 0.25.1 on this machine. There is no data for "Windows_os_*"

chinaxushi avatar Apr 25 '24 06:04 chinaxushi

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 25 '24 02:07 github-actions[bot]