Fix ITL CheckCommand disk

Add -N/--include-type option, available since release 1.5.
This commit is contained in:
BarbUk 2018-12-20 13:22:59 +04:00
parent c4d57afa3d
commit c97c42bff4
2 changed files with 6 additions and 0 deletions

View File

@ -347,6 +347,7 @@ disk\_ignore\_ereg\_path | **Optional.** Regular expression to ignore selected
disk\_timeout | **Optional.** Seconds before connection times out (default: 10).
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_smb <a id="plugin-check-command-disk-smb"></a>

View File

@ -1475,6 +1475,11 @@ object CheckCommand "disk" {
description = "Ignore all filesystems of indicated type (may be repeated)"
repeat_key = true
}
"-N" = {
value = "$disk_include_type$"
description = "Check only filesystems of indicated type (may be repeated)"
repeat_key = true
}
}
vars.disk_wfree = "20%"