Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / cmk / gui / plugins / wato / check_parameters / ucs_bladecenter_chassis_voltage.py
blob0be3e4f2db2e7f7adb4890d7ac408275bb3eea9c
1 #!/usr/bin/python
2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
3 # +------------------------------------------------------------------+
4 # | ____ _ _ __ __ _ __ |
5 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
6 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
7 # | | |___| | | | __/ (__| < | | | | . \ |
8 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
9 # | |
10 # | Copyright Mathias Kettner 2014 mk@mathias-kettner.de |
11 # +------------------------------------------------------------------+
13 # This file is part of Check_MK.
14 # The official homepage is at http://mathias-kettner.de/check_mk.
16 # check_mk is free software; you can redistribute it and/or modify it
17 # under the terms of the GNU General Public License as published by
18 # the Free Software Foundation in version 2. check_mk is distributed
19 # in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
20 # out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21 # PARTICULAR PURPOSE. See the GNU General Public License for more de-
22 # tails. You should have received a copy of the GNU General Public
23 # License along with GNU Make; see the file COPYING. If not, write
24 # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
25 # Boston, MA 02110-1301 USA.
27 from cmk.gui.i18n import _
28 from cmk.gui.valuespec import (
29 Dictionary,
30 Float,
31 TextAscii,
32 Tuple,
34 from cmk.gui.plugins.wato import (
35 RulespecGroupCheckParametersEnvironment,
36 register_check_parameters,
39 register_check_parameters(
40 RulespecGroupCheckParametersEnvironment, "ucs_bladecenter_chassis_voltage",
41 _("UCS Bladecenter Chassis Voltage Levels"),
42 Dictionary(
43 help=_("Here you can configure the 3.3V and 12V voltage levels for each chassis."),
44 elements=[
45 ("levels_3v_lower",
46 Tuple(
47 title=_("3.3 Volt Output Lower Levels"),
48 elements=[
49 Float(title=_("warning if below or equal"), unit="V", default_value=3.25),
50 Float(title=_("critical if below or equal"), unit="V", default_value=3.20),
51 ])),
52 ("levels_3v_upper",
53 Tuple(
54 title=_("3.3 Volt Output Upper Levels"),
55 elements=[
56 Float(title=_("warning if above or equal"), unit="V", default_value=3.4),
57 Float(title=_("critical if above or equal"), unit="V", default_value=3.45),
58 ])),
59 ("levels_12v_lower",
60 Tuple(
61 title=_("12 Volt Output Lower Levels"),
62 elements=[
63 Float(title=_("warning if below or equal"), unit="V", default_value=11.9),
64 Float(title=_("critical if below or equal"), unit="V", default_value=11.8),
65 ])),
66 ("levels_12v_upper",
67 Tuple(
68 title=_("12 Volt Output Upper Levels"),
69 elements=[
70 Float(title=_("warning if above or equal"), unit="V", default_value=12.1),
71 Float(title=_("critical if above or equal"), unit="V", default_value=12.2),
72 ]))
73 ]), TextAscii(title=_("Chassis"), help=_("The identifier of the chassis.")), "dict")