Add check_disk option to add inode numbers into perfdata (#9494)

This commit is contained in:
Lorenz 2022-08-25 17:33:11 +02:00 committed by GitHub
parent 643e9cd48b
commit 67b025f69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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 <a id="plugin-check-command-disk-smb"></a>

View File

@ -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)"