Add all missing UPS check parameters

fixes #8881

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
This commit is contained in:
Louis Sautier 2015-03-27 12:48:45 +01:00 committed by Gunnar Beutner
parent 419ab0061c
commit 0779d2c44b
2 changed files with 42 additions and 4 deletions

View File

@ -760,8 +760,14 @@ Custom Attributes:
Name | Description
----------------|--------------
ups_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
ups_name | **Optional.** The UPS name. Defaults to `ups`.
ups_address | **Required.** The address of the host running upsd. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
ups_name | **Required.** The UPS name. Defaults to `ups`.
ups_port | **Optional.** The port to which to connect. Defaults to 3493.
ups_variable | **Optional.** The variable to monitor. Must be one of LINE, TEMP, BATTPCT or LOADPCT. If this is not set, the check only relies on the value of `ups.status`.
ups_warning | **Optional.** The warning threshold for the selected variable.
ups_critical | **Optional.** The critical threshold for the selected variable.
ups_celsius | **Optional.** Display the temperature in degrees Celsius instead of Fahrenheit. Defaults to `false`.
ups_timeout | **Optional.** The number of seconds before the connection times out. Defaults to 10.
## <a id="plugin-check-command-users"></a> users

View File

@ -932,8 +932,40 @@ object CheckCommand "ups" {
command = [ PluginDir + "/check_ups" ]
arguments = {
"-H" = "$ups_address$"
"-u" = "$ups_name$"
"-H" = {
value = "$ups_address$"
description = "Address of the upsd server"
required = true
}
"-u" = {
value = "$ups_name$"
description = "Name of the UPS to monitor"
required = true
}
"-p" = {
value = "$ups_port"$
description = "Port number (default: 3493)"
}
"-v" = {
value = "$ups_variable$"
description = "Variable to monitor, valid strings are LINE, TEMP, BATTPCT or LOADPCT"
}
"-w" = {
value = "$ups_warning$"
description = "Warning threshold for the selected variable"
}
"-c" = {
value = "$ups_critical$"
description = "Critical threshold for the selected variable"
}
"-T" = {
set_if = "$ups_celsius$"
description = "Display temperature in degrees Celsius instead of Fahrenheit"
}
"-t" = {
value = "$ups_timeout$"
description = "Seconds before the connection times out (default: 10)"
}
}
vars.ups_address = "$check_address$"