Skip to content

Invoke-IcingaCheckPartitionSpace doesn't work on 1 server called from Icinga, but works on other servers #253

Description

@Laszlo-Fiat

So I have updated all the windows servers to the newest stable icinga for windows versions. All servers work happily, except one, where in Icinga I get an Unknown result:

***** Service Monitoring on icinga-server *****

disk on file-server is UNKNOWN!

Info:    [UNKNOWN]: Icinga Invalid Input Error was thrown: ConversionUnitMissing



Unable to parse input value. You have to add an unit to your input value. Example: "10GB". Allowed units are: "B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB".
[UNKNOWN] Icinga Exception: Exception calling "WarnOutOfRange" with "1" argument(s): "System error."



CheckCommand: Invoke-IcingaCheckPartitionSpace

Arguments: -Warning 80% -Critical 90% -Include System.Object[] -Exclude System.Object[] -CheckUsedSpace



StackTrace:

at Invoke-IcingaCheckPartitionSpace, C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-plugins\plugins\Invoke-IcingaCheckUsedPartitionSpace.psm1: line 147

at Exit-IcingaExecutePlugin, C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework

While running directly on the same server from Administrator Powershell I get the proper result:

PS C:\> Invoke-IcingaCheckPartitionSpace -Warning 80% -Critial 90% -CheckUsed
[WARNING] Used Partition Space: 1 Warning 7 Ok [WARNING] Partition D: (87.72% (2.80TiB))
\_ [WARNING] Partition D: 87.72% (2.80TiB) is greater than threshold 80% (2.55TiB)
| 'used_space_partition_f'=1369839000000B;1661385600000;;0;2076732000000 'used_space_partition_j'=1264494000000B;1286400
000000;;0;1608000000000 'used_space_partition_e'=1553037000000B;1741303200000;;0;2176629000000 'used_space_partition_m'=
1026039000000B;3518220800000;;0;4397776000000 'used_space_partition_d'=3078402000000B;2807618400000;;0;3509523000000 'us
ed_space_partition_c'=116417900000B;168691520000;;0;210864400000 'used_space_partition_i'=862352200000B;1661280800000;;0
;2076601000000 'used_space_partition_l'=843989400000B;7916132800000;;0;9895166000000
1

What could cause this? I am sure I have updated the framework, the .psm1 file in question is the same size as on all other servers.
Thank you for helping.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions