From a10107c540db610d91c8125806893b9e9050d647 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 6 Nov 2014 14:17:28 +0100 Subject: [PATCH] Plugin Check Commands: disk is missing '-p', 'x' parameter fixes #7596 --- doc/7-configuring-icinga-2.md | 12 ++++++++---- itl/command-plugins.conf | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/7-configuring-icinga-2.md b/doc/7-configuring-icinga-2.md index 9089775e5..85e227c80 100644 --- a/doc/7-configuring-icinga-2.md +++ b/doc/7-configuring-icinga-2.md @@ -2168,10 +2168,14 @@ Check command object for the `check_disk` plugin. Custom Attributes: -Name | Description -----------------|-------------- -disk_wfree | **Optional.** The free space warning threshold in %. Defaults to 20. -disk_cfree | **Optional.** The free space critical threshold in %. Defaults to 10. +Name | Description +------------------------|------------------------ +disk_wfree | **Optional.** The free space warning threshold in %. Defaults to 20. +disk_cfree | **Optional.** The free space critical threshold in %. Defaults to 10. +disk_inode_wfree | **Optional.** The free inode warning threshold. +disk_inode_cfree | **Optional.** The free inode critical threshold. +disk_partition | **Optional.** The partition. +disk_partition_excluded | **Optional.** The excluded partition. #### users diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 3079d4ad4..70643243a 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -413,6 +413,10 @@ object CheckCommand "disk" { arguments = { "-w" = "$disk_wfree$%" "-c" = "$disk_cfree$%" + "-W" = "$disk_inode_wfree$%" + "-K" = "$disk_inode_cfree$%" + "-p" = "$disk_partition$" + "-x" = "$disk_partition_excluded$" } vars.disk_wfree = 20 -- 2.40.0