mirror of https://github.com/Icinga/icinga2.git
Add all missing UPS check parameters
fixes #8881 Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
This commit is contained in:
parent
ac19972d45
commit
f9cb69a493
|
@ -749,8 +749,14 @@ Custom Attributes:
|
||||||
|
|
||||||
Name | Description
|
Name | Description
|
||||||
----------------|--------------
|
----------------|--------------
|
||||||
ups_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
|
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 | **Optional.** The UPS name. Defaults to `ups`.
|
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
|
## <a id="plugin-check-command-users"></a> users
|
||||||
|
|
|
@ -932,8 +932,40 @@ object CheckCommand "ups" {
|
||||||
command = [ PluginDir + "/check_ups" ]
|
command = [ PluginDir + "/check_ups" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
"-H" = "$ups_address$"
|
"-H" = {
|
||||||
"-u" = "$ups_name$"
|
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$"
|
vars.ups_address = "$check_address$"
|
||||||
|
|
Loading…
Reference in New Issue