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:
Michael Friedrich 2019-01-29 09:43:06 +01:00 committed by GitHub
commit 12ddaa792e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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$"
}