From 67b025f69b28d49b94a8084e5dc60eb8728fc908 Mon Sep 17 00:00:00 2001 From: Lorenz <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 25 Aug 2022 17:33:11 +0200 Subject: [PATCH] Add check_disk option to add inode numbers into perfdata (#9494) --- doc/10-icinga-template-library.md | 1 + itl/command-plugins.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 1884c9c01..06655a5b7 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -377,6 +377,7 @@ disk\_timeout | **Optional.** Seconds before connection times out (d disk\_units | **Optional.** Choose bytes, kB, MB, GB, TB (default: MB). disk\_exclude\_type | **Optional.** Ignore all filesystems of indicated type. Multiple regular expression strings must be defined as array. Defaults to "none", "tmpfs", "sysfs", "proc", "configfs", "devtmpfs", "devfs", "mtmfs", "tracefs", "cgroup", "fuse.gvfsd-fuse", "fuse.gvfs-fuse-daemon", "fdescfs", "overlay", "nsfs", "squashfs". disk\_include\_type | **Optional.** Check only filesystems of indicated type. Multiple regular expression strings must be defined as array. +disk\_inode\_perfdata | **Optional.** Display inode usage in perfdata ### disk_smb diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index c1b47a6c2..f534cfb1b 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -1364,6 +1364,10 @@ object CheckCommand "disk" { description = "Exit with CRITICAL status if less than PERCENT of inode space is free" order = -3 } + "-P" = { + description = "Display inode usage in perfdata" + set_if = "$disk_inode_perfdata$" + } "-p" = { value = "$disk_partitions$" description = "Path or partition (may be repeated)"