mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6911 from peteeckel/feature/nscp-disk-exclude-option
Make the NSCP CheckDisk --exclude option available to Icinga 2
This commit is contained in:
commit
12ddaa792e
|
@ -1877,7 +1877,8 @@ Check command object for the `check_drivesize` NSClient++ plugin.
|
|||
|
||||
Name | Description
|
||||
-----------------------|------------------
|
||||
nscp_disk_drive | **Optional.** Drive character, default to all drives.
|
||||
nscp_disk_drive | **Optional.** Drive character, default to all drives. Can be an array if multiple drives should be monitored.
|
||||
nscp_disk_exclude | **Optional.** Drive character, default to none. Can be an array of drive characters if multiple drives should be excluded.
|
||||
nscp_disk_free | **Optional.** Switch between checking free space (free=true) or used space (free=false), default to false.
|
||||
nscp_disk_warning | **Optional.** Threshold for WARNING in percent or absolute (use MB, GB, ...), default to 80 (used) or 20 percent (free).
|
||||
nscp_disk_critical | **Optional.** Threshold for CRITICAL in percent or absolute (use MB, GB, ...), default to 90 (used) or 10 percent (free).
|
||||
|
|
|
@ -222,6 +222,10 @@ object CheckCommand "nscp-local-disk" {
|
|||
value = "$nscp_disk_drive$"
|
||||
repeat_key = true
|
||||
}
|
||||
"--exclude" = {
|
||||
value = "$nscp_disk_exclude$"
|
||||
repeat_key = true
|
||||
}
|
||||
"--warning" = {
|
||||
value = "$nscp_disk_op$ $nscp_disk_warning$"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue