Skip to content

Commit d806b05

Browse files
committed
Fixes pagefile unit for memory plugin
1 parent 0c8144e commit d806b05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/31-Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1212
### Bugfixes
1313

1414
* [#358](https://github.com/Icinga/icinga-powershell-plugins/issues/358) Fixes broken Icinga plain configuration
15+
* [#360](https://github.com/Icinga/icinga-powershell-plugins/issues/360) Fixes `Invoke-IcingaCheckMemory` which uses the wrong unit for the pagefile plugin, wrong values, exceptions and %-Values not working
1516

1617
# 1.11.0 (2023-08-01)
1718

plugins/Invoke-IcingaCheckMemory.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function Invoke-IcingaCheckMemory()
129129
-BaseValue $PageFile.TotalSize `
130130
-Minimum 0 `
131131
-Maximum $PageFile.TotalSize `
132-
-Unit 'MB' `
132+
-Unit 'B' `
133133
-LabelName ([string]::Format('pagefile_{0}', (Format-IcingaPerfDataLabel $PageFile.Name))) `
134134
-MetricIndex (Format-IcingaPerfDataLabel $PageFile.Name) `
135135
-MetricName 'used' `

0 commit comments

Comments
 (0)