add order tags to disk check

Ensure argument order for inode parameters and "all"-flag is the same as for other disk-free options and partition-parameter. As a result the inode-checks should actually work with the "disk_all" (-A) flag.
This commit is contained in:
Harald Laabs 2017-11-03 11:07:16 +01:00 committed by GitHub
parent d6caf4aa46
commit 04c65daa34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1399,10 +1399,12 @@ object CheckCommand "disk" {
"-W" = {
value = "$disk_inode_wfree$"
description = "Exit with WARNING status if less than PERCENT of inode space is free"
order = -3
}
"-K" = {
value = "$disk_inode_cfree$"
description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
order = -3
}
"-p" = {
value = "$disk_partitions$"
@ -1466,6 +1468,7 @@ object CheckCommand "disk" {
"-A" = {
set_if = "$disk_all$"
description = "Explicitly select all paths. This is equivalent to -R .*"
order = 1
}
"-R" = {
value = "$disk_eregi_path$"