Skip to content

Commit 6669c1c

Browse files
authored
Merge pull request #363 from Icinga/fix/pagefile_plugin_unit_is_wrong
Fix: Pagefile unit for memory plugin Fixes `Invoke-IcingaCheckMemory` which uses the wrong unit for the pagefile plugin, wrong values, exceptions and %-Values not working
2 parents d575f01 + f93e201 commit 6669c1c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/31-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1616
### Bugfixes
1717

1818
* [#358](https://github.com/Icinga/icinga-powershell-plugins/issues/358) Fixes broken Icinga plain configuration
19+
* [#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
1920

2021
# 1.11.0 (2023-08-01)
2122

plugins/Invoke-IcingaCheckMemory.psm1

Lines changed: 1 addition & 1 deletion
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)