You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/100-General/10-Changelog.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,14 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
11
11
12
12
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)
13
13
14
+
## 1.13.3 (tbd)
15
+
16
+
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/39)
17
+
14
18
### Bugfixes
15
19
16
20
*[#787](https://github.com/Icinga/icinga-powershell-framework/pull/787) Fixes the return value in case the `Agent` component could not be installed from `$FALSE` to `null`
21
+
*[#796](https://github.com/Icinga/icinga-powershell-framework/issues/796)[#798](https://github.com/Icinga/icinga-powershell-framework/issues/798) Fixes an issue with the new check handling, which did not properly convert values from checks to the correct performance data values and base values in some cases
if ($null-eq$Value-Or$null-eq$Threshold-Or [string]::IsNullOrEmpty($Threshold.Raw)) {
100
101
$RetValue.Message=$HumanReadableValue;
@@ -139,50 +140,50 @@ function Compare-IcingaPluginValueToThreshold()
139
140
}
140
141
141
142
if ($Value-gt$Threshold.Value) {
142
-
$RetValue.Message= [string]::Format('Value {0} is greater than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
143
+
$RetValue.Message= [string]::Format('Value {0} is greater than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
143
144
return$RetValue;
144
145
}
145
146
}
146
147
break;
147
148
};
148
149
$IcingaEnums.IcingaThresholdMethod.Lower {
149
150
if ($Value-lt$Threshold.Value) {
150
-
$RetValue.Message= [string]::Format('Value {0} is lower than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
151
+
$RetValue.Message= [string]::Format('Value {0} is lower than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
151
152
return$RetValue;
152
153
}
153
154
break;
154
155
};
155
156
$IcingaEnums.IcingaThresholdMethod.LowerEqual {
156
157
if ($Value-le$Threshold.Value) {
157
-
$RetValue.Message= [string]::Format('Value {0} is lower or equal than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
158
+
$RetValue.Message= [string]::Format('Value {0} is lower or equal than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
158
159
return$RetValue;
159
160
}
160
161
break;
161
162
};
162
163
$IcingaEnums.IcingaThresholdMethod.Greater {
163
164
if ($Value-gt$Threshold.Value) {
164
-
$RetValue.Message= [string]::Format('Value {0} is greater than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
165
+
$RetValue.Message= [string]::Format('Value {0} is greater than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
165
166
return$RetValue;
166
167
}
167
168
break;
168
169
};
169
170
$IcingaEnums.IcingaThresholdMethod.GreaterEqual {
170
171
if ($Value-gt$Threshold.Value) {
171
-
$RetValue.Message= [string]::Format('Value {0} is greater or equal than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
172
+
$RetValue.Message= [string]::Format('Value {0} is greater or equal than threshold {1}{2}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.Value-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
172
173
return$RetValue;
173
174
}
174
175
break;
175
176
};
176
177
$IcingaEnums.IcingaThresholdMethod.Between {
177
178
if ($Value-lt$Threshold.StartRange-Or$Value-gt$Threshold.EndRange) {
178
-
$RetValue.Message= [string]::Format('Value {0} is not between thresholds <{1} or >{2}{3}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.StartRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold), (Convert-IcingaPluginValueToString-Value $Threshold.EndRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
179
+
$RetValue.Message= [string]::Format('Value {0} is not between thresholds <{1} or >{2}{3}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.StartRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold), (Convert-IcingaPluginValueToString-Value $Threshold.EndRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
179
180
return$RetValue;
180
181
}
181
182
break;
182
183
};
183
184
$IcingaEnums.IcingaThresholdMethod.Outside {
184
185
if ($Value-ge$Threshold.StartRange-And$Value-le$Threshold.EndRange) {
185
-
$RetValue.Message= [string]::Format('Value {0} is between thresholds >={1} and <={2}{3}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.StartRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold), (Convert-IcingaPluginValueToString-Value $Threshold.EndRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
186
+
$RetValue.Message= [string]::Format('Value {0} is between thresholds >={1} and <={2}{3}',$HumanReadableValue, (Convert-IcingaPluginValueToString-Value $Threshold.StartRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $CheckUnit-UsePercent:$UsePercent-IsThreshold), (Convert-IcingaPluginValueToString-Value $Threshold.EndRange-BaseValue $BaseValue-Unit $Threshold.Unit-OriginalUnit $Unit-UsePercent:$UsePercent-IsThreshold),$MoTMessage);
0 commit comments