Module: check_mk
Branch: master
Commit: ba7a7a8e52d32ba463e15960eb82de65c17cd544
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba7a7a8e52d32b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Aug 25 15:40:00 2014 +0200
Fix man pages of up_*capacity
---
checkman/ups_capacity | 22 +++++++++-------------
checkman/ups_socomec_capacity | 4 ++--
2 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/checkman/ups_capacity b/checkman/ups_capacity
index 3fc31f6..eb9c5ce 100644
--- a/checkman/ups_capacity
+++ b/checkman/ups_capacity
@@ -11,36 +11,32 @@ description:
the battery capacity (in percent),
and the remaining runtime (in minutes).
Warning and critical levels can
- be given for the time on battery and the capacity.
+ be given for the remaining run time for the capacity.
perfdata:
The remaining runtime in minutes and the capacity in percent
inventory:
- Supported.
+ One service per UPS will be created.
examples:
ups_capacity_default_levels = {
- 'battime': (0, 0),
+ 'battime': (20, 40),
'capacity': (90, 80)
}
- checkgroup_parameters.setdefault('ups_capacity', [])
-
- checkgroup_parameters['ups_capacity'] = [
- ( {'capacity': ( 90, 80 ) }, ["prod"], ALL_HOSTS,
["ups_capacity"]' ),
- ] + checkgroup_parameters['ups_capacity']
[configuration]
ups_capacity_default_levels(dict): This variable is preset to {{ 'battime': (0,
0), 'capacity': (95, 90) }}
[parameters]
-parameters(dict): with the keys "battime" and "capacity"
+parameters(dict): A dictionary with with the keys {battime} and {capacity}?
- 'battime' is a tuple containing warning and critical levels for the
- time in seconds the USV is on battery. Default levels are (0, 0)
+ {battime} is a tuple containing warning and critical levels for the
+ time in minutes that the USV is estimated to have remaining runtime.
+ Default levels are {(0, 0)}.
- 'capacity' is a tuple containing the warning and critical levels for
- the battery capacity in percent. Default levels are (95, 90)
+ {capacity} is a tuple containing the warning and critical levels for
+ the battery capacity in percent. Default levels are {(95, 90)}
diff --git a/checkman/ups_socomec_capacity b/checkman/ups_socomec_capacity
index 69b4b2d..5b6c477 100644
--- a/checkman/ups_socomec_capacity
+++ b/checkman/ups_socomec_capacity
@@ -9,9 +9,9 @@ description:
the battery capacity (in percent),
and the remaining runtime (in minutes).
Warning and critical levels can
- be given for the time on battery and the capacity.
+ be given for the remaining runtime.
- Please refer to the manpage of ups_capacity for configuration examples.
+ Please refer to the manpage of {ups_capacity} for configuration examples.
perfdata:
The remaining runtime in minutes and the capacity in percent