2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
3 # +------------------------------------------------------------------+
4 # | ____ _ _ __ __ _ __ |
5 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
6 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
7 # | | |___| | | | __/ (__| < | | | | . \ |
8 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
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 (
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"),
43 help=_("Here you can configure the 3.3V and 12V voltage levels for each chassis."),
47 title
=_("3.3 Volt Output Lower Levels"),
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),
54 title
=_("3.3 Volt Output Upper Levels"),
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),
61 title
=_("12 Volt Output Lower Levels"),
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),
68 title
=_("12 Volt Output Upper Levels"),
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),
73 ]), TextAscii(title
=_("Chassis"), help=_("The identifier of the chassis.")), "dict")