Git Product home page Git Product logo

Comments (12)

tekert avatar tekert commented on May 26, 2024 1

Yearly visit to pray for this.

from windows_exporter.

martinlindhe avatar martinlindhe commented on May 26, 2024

This should be doable! Thanks for the suggestion.

from windows_exporter.

martinlindhe avatar martinlindhe commented on May 26, 2024

I started work on this, but we need to resolve StackExchange/wmi#30 before we can finish this off, the issue is the library we are using for talking WMI lacks the support for the data type used by the SMART data values.

I will push the initial work, but it will lack most of the functionality with regard to SMART values as compared to
https://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows/NRPE/check_smartwmi-SMART-Monitoring-for-Windows-by-using-builtin-WMI/details

from windows_exporter.

martinlindhe avatar martinlindhe commented on May 26, 2024

Also, the WMI query seems to require admin rights, so you will need to configure the running account accordingly.
You can test your permissions using this query:

gwmi -namespace root\wmi -class MSStorageDriver_ATAPISmartData

if it returns data, you should be able to use the "smart" collector of wmi_exporter. Otherwise you should get gwmi : Access denied

from windows_exporter.

chrisgraf avatar chrisgraf commented on May 26, 2024

I tried to execute your test-query but even as local administrator I get the Access denied message. What additional privileges do I need to have to execute the query? How can these be added to the exporter service once it has the smart export feature enabled?

from windows_exporter.

martinlindhe avatar martinlindhe commented on May 26, 2024

The pr in upstream StackExchange/wmi has been merged and vendor updated in df0db7a#diff-9d82496a83fa4e47d10aefb501c99b4e

from windows_exporter.

johtso avatar johtso commented on May 26, 2024

What's the status of this?

from windows_exporter.

martinlindhe avatar martinlindhe commented on May 26, 2024

@johtso abandoned. You could resume work on #108

from windows_exporter.

johtso avatar johtso commented on May 26, 2024

@martinlindhe thanks for clarifying! I think I'll see if I can get the data using the NewRelic PerfMon integration.. https://github.com/newrelic/nri-perfmon

from windows_exporter.

rdiez avatar rdiez commented on May 26, 2024

I am no Windows expert, but I just found a little information about this.

Something like:
Get-Disk | Get-StorageReliabilityCounter | Select-Object -Property "*"
should get a list with items like:

ReadErrorsUncorrected : 0
WriteErrorsUncorrected : 0
...

You wouldn't need anything like "add support for []uint8 slices" for that. The Node Exporter for Linux/Unix seems to export one metric per S.M.A.R.T. attribute found, so the Windows Exporter could just export one metric for ReadErrorsUncorrected, another one for WriteErrorsUncorrected, and so on.

There is also this flag, at least on modern versions of Windows:

(Get-WmiObject -Namespace root\wmi –Class MSStorageDriver_FailurePredictStatus).PredictFailure

I have read that this is a boolean flag. That could be exported as a separate metric too.

from windows_exporter.

stavros-k avatar stavros-k commented on May 26, 2024

I don't know how much value would my comment add here.
There is a project that can collect SMART data from windows, Scrutiny, which in reality uses smartmontools.

from windows_exporter.

github-actions avatar github-actions commented on May 26, 2024

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.

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.