Skip to content

Commit

Permalink
Merge pull request #319 from Icinga:fix/remove_perfdata_for_checksum_…
Browse files Browse the repository at this point in the history
…plugin

Fix: Removes performance metric for CheckSum plugin

Removes performance data for `Invoke-IcingaCheckCheckSum`, as there are no real performance metrics to write which are allowed by icinga.
  • Loading branch information
LordHepipud authored Aug 26, 2022
2 parents 50b60c6 + e1b8cfd commit 6e07642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/31-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic

* [#199](https://github.com/Icinga/icinga-powershell-plugins/issues/199) Fixes `Invoke-IcingaCheckDiskHealth` to add disk metadata like serial number and friendly name for any disk type processed
* [#308](https://github.com/Icinga/icinga-powershell-plugins/pull/308) Fixes function `Get-IcingaServiceCheckName` which was not public anymore since v1.9.0, causing MSSQL plugins to not work properly
* [#319](https://github.com/Icinga/icinga-powershell-plugins/pull/319) Removes performance data for `Invoke-IcingaCheckCheckSum`, as there are no real performance metrics to write which are allowed by icinga

## Enhancements

Expand Down
2 changes: 1 addition & 1 deletion plugins/Invoke-IcingaCheckCheckSum.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function Invoke-IcingaCheckCheckSum()
}

[string]$FileHash = (Get-IcingaFileHash $Path -Algorithm $Algorithm).Hash
$CheckSumCheck = New-IcingaCheck -Name "CheckSum $Path" -Value $FileHash;
$CheckSumCheck = New-IcingaCheck -Name "CheckSum $Path" -Value $FileHash -NoPerfData;

If (([string]::IsNullOrEmpty($Hash)) -eq $FALSE) {
$CheckSumCheck.CritIfNotMatch($Hash) | Out-Null;
Expand Down

0 comments on commit 6e07642

Please sign in to comment.