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
Merge pull request #393 from Icinga:feature/adds_support_to_partition_plugin_for_mandatory_partitions
Feature: Adds support for mandatory partitions to Invoke-IcingaCheckPartitionSpace
Adds support to Invoke-IcingaCheckPartitionSpace to define mandatory partitions which should always be present
description = "Changes the behavior of the plugin output which check states are printed: 0 (default): Only service checks/packages with state not OK will be printed 1: Only services with not OK will be printed including OK checks of affected check packages including Package config 2: Everything will be printed regardless of the check state 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])"
7
7
value = "$IcingaCheckPartitionSpace_Int32_Verbosity$"
description = "Allows to define a list of partitions which should be included in the check. e.g. 'C:','D:' In case they are missing, the plugin will report CRITICAL"
98
+
value = {{
99
+
var arr = macro("$IcingaCheckPartitionSpace_Array_RequiredPartition$");
description = "Changes the behavior of the plugin output which check states are printed: 0 (default): Only service checks/packages with state not OK will be printed 1: Only services with not OK will be printed including OK checks of affected check packages including Package config 2: Everything will be printed regardless of the check state 3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])"
535
535
value = "$IcingaCheckPartitionSpace_Int32_Verbosity$"
description = "Allows to define a list of partitions which should be included in the check. e.g. 'C:','D:' In case they are missing, the plugin will report CRITICAL"
626
+
value = {{
627
+
var arr = macro("$IcingaCheckPartitionSpace_Array_RequiredPartition$");
description = "A warning threshold for the shares total free space in byte units, like '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB"
3572
+
description = "A critical threshold for the shares free space in either % or byte units, like '20%:' or '50GB:' Please note that this value is decreasing over time, therefor you will have to use the plugin handler and add ':' at the end of your input to check for 'current value < threshold' like in the previous example Allowed units: %, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB"
3547
3573
value = "$IcingaCheckUNCPath_Object_CriticalTotal$"
Copy file name to clipboardExpand all lines: doc/31-Changelog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
17
17
18
18
### Enhancements
19
19
20
+
*[#288](https://github.com/Icinga/icinga-powershell-plugins/issues/288) Adds support to `Invoke-IcingaCheckPartitionSpace` to define mandatory partitions which should always be present
20
21
*[#366](https://github.com/Icinga/icinga-powershell-plugins/issues/366) Adds support to `Invoke-IcingaCheckCPU` to report top CPU consuming process information as well as a switch to change the overall load from average to sum
if ($KnownPartitions.Contains($reqPartition) -eq$FALSE) {
176
+
$IcingaCheck= (New-IcingaCheck-Name ([string]::Format('Partition {0}',$reqPartition.ToUpper())) -Value 'Mandatory partition not found on host'-NoPerfData).SetCritical();
0 commit comments