Icinga / Icinga/icinga-powershell-plugins

Enhancement for Invoke-IcingaCheckDiskHealth: check "dirty bit" of a volume

Open
#481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
55
Forks
30
PR merge metrics
No merged PRs in 30d

Description

The name of the plugin might suggest, that the physical/logical integrety of partition is also tested, but this is not the case. It is easy to check, if a volume is marked as "dirty" and the "dirty bit" is set with an additional WMI/CIM-based command:

Get-CimInstance -ClassName Win32_Volume -Filter "DriveLetter = 'C:'" | Select-Object DriveLetter, Label, DirtyBitSet

DriveLetter Label  DirtyBitSet
----------- -----  -----------
C:          SYSTEM        True

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Invoke-IcingaCheckDiskHealth entry point and inspect how volumes are currently queried and reported. Use the shown Get-CimInstance Win32_Volume query as the reference, then verify that a volume with DirtyBitSet set to True is detected and reported by the check.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
observability-sre
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.