prometheus-community / windows_exporter

Prometheus exporter for Windows machines
MIT License
2.83k stars 679 forks source link

There is no Windows_os_* return on a certain Windows #1426

Closed chinaxushi closed 1 month ago

chinaxushi commented 6 months ago

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.

jkroepke commented 4 months ago

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

chinaxushi commented 4 months ago

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

jkroepke commented 4 months ago

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

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

chinaxushi commented 4 months ago

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 commented 4 months ago

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

github-actions[bot] commented 1 month ago

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.