From 299d056bbfade5bc36e22b306bfd1b83485e3ac8 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sun, 3 Nov 2019 11:56:55 +0100 Subject: [PATCH] Improves check output --- lib/icinga/plugin/New-IcingaCheck.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/icinga/plugin/New-IcingaCheck.psm1 b/lib/icinga/plugin/New-IcingaCheck.psm1 index 3c7ee48..780915d 100644 --- a/lib/icinga/plugin/New-IcingaCheck.psm1 +++ b/lib/icinga/plugin/New-IcingaCheck.psm1 @@ -494,7 +494,7 @@ function New-IcingaCheck() $this.SetExitCode($state); $this.AddMessage( [string]::Format( - '{0} {1}{4} is {2} {3}{4}', + '{0}: Value "{1}{4}" is {2} threshold "{3}{4}"', $this.name, $this.TranslateValue($this.value), $type, @@ -670,7 +670,7 @@ function New-IcingaCheck() $this.exitcode = $IcingaEnums.IcingaExitCode.Ok; $this.AddMessage( [string]::Format( - '{0} is {1}{2}', + '{0}: {1}{2}', $this.name, $this.TranslateValue($this.value), $this.unit