diff --git a/lib/icinga/plugin/New-IcingaCheck.psm1 b/lib/icinga/plugin/New-IcingaCheck.psm1 index 780915d..89d8bf7 100644 --- a/lib/icinga/plugin/New-IcingaCheck.psm1 +++ b/lib/icinga/plugin/New-IcingaCheck.psm1 @@ -471,6 +471,8 @@ function New-IcingaCheck() if ((Test-Numeric $checkValue)) { $checkValue = [int]$checkValue; + } else { + $checkValue = [string]$checkValue; } if ($this.translation.ContainsKey($checkValue)) {