windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

collect number of lockedout ad accounts

Open djagoo opened this issue 3 years ago • 2 comments

Would it be possible to add a metric for the total number of current lockedout ad accounts?

djagoo avatar Jan 26 '22 10:01 djagoo

The ad collector doesn't currently expose any relevant metrics for locked accounts (it sources metrics from Win32_PerfRawData_DirectoryServices_DirectoryServices.

You could write a script to gather the metrics yourself and expose them with the textfile collector. If you're able to find a metrics source (WMI, Perflib, etc), we could add them to the exporter.

breed808 avatar Jan 26 '22 20:01 breed808

I wrote a script which performs an ldap query and pushes the metrics to the pushgateway. The only other source I found was using powershell but no WMI or Perflib.

If nobody else finds a solution using a better source you can close this issue.

Thanks

djagoo avatar Jan 27 '22 08:01 djagoo

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 Nov 25 '23 02:11 github-actions[bot]