mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Improves check output
This commit is contained in:
parent
0dafbb6e07
commit
299d056bbf
1 changed files with 2 additions and 2 deletions
|
|
@ -494,7 +494,7 @@ function New-IcingaCheck()
|
||||||
$this.SetExitCode($state);
|
$this.SetExitCode($state);
|
||||||
$this.AddMessage(
|
$this.AddMessage(
|
||||||
[string]::Format(
|
[string]::Format(
|
||||||
'{0} {1}{4} is {2} {3}{4}',
|
'{0}: Value "{1}{4}" is {2} threshold "{3}{4}"',
|
||||||
$this.name,
|
$this.name,
|
||||||
$this.TranslateValue($this.value),
|
$this.TranslateValue($this.value),
|
||||||
$type,
|
$type,
|
||||||
|
|
@ -670,7 +670,7 @@ function New-IcingaCheck()
|
||||||
$this.exitcode = $IcingaEnums.IcingaExitCode.Ok;
|
$this.exitcode = $IcingaEnums.IcingaExitCode.Ok;
|
||||||
$this.AddMessage(
|
$this.AddMessage(
|
||||||
[string]::Format(
|
[string]::Format(
|
||||||
'{0} is {1}{2}',
|
'{0}: {1}{2}',
|
||||||
$this.name,
|
$this.name,
|
||||||
$this.TranslateValue($this.value),
|
$this.TranslateValue($this.value),
|
||||||
$this.unit
|
$this.unit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue