Icinga / icinga-powershell-plugins

A collection of Windows check plugins for the Icinga PowerShell Framework
GNU General Public License v2.0
51 stars 28 forks source link

Feature Request: Invoke-IcingaCheckUsedPartitionSpace not listing all physical disks #417

Open Captain-Abi opened 1 month ago

Captain-Abi commented 1 month ago

on our servers we use the possibility to "mount" a physical disk into an empty ntfs folder.

the used space of those disks ist not shown by the powershell check, but from the old deprecated check_disk.

to reproduce the issue take a vm, install windows with default-settings. create an new folder somewhere on the harddrive, e.g. C:\mountpoint image

insert a second harddrive into the vm, initialize it with gpt partition table. create a new basic volume, assign the new partition not with a drive letter, mount it into your created folder C:\mountpoint image

i attach screenshots of an example machine to compare the old check_disk and Invoke-IcingaCheckUsedPartitionSpace.

-Invoke-IcingaCheckUsedPartitionSpace Plugin Output: Used Partition Space: 2 Ok (All must be ) _ Partition C: 69.40% (27.34GiB) _ Partition D: 20.62% (1.03GiB) Performance Data: image