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 (
37 from cmk
.gui
.plugins
.wato
import (
38 RulespecGroupCheckParametersStorage
,
39 register_check_parameters
,
42 register_check_parameters(
43 RulespecGroupCheckParametersStorage
,
45 _("FibreChannel Ports (FCMGMT MIB)"),
49 title
=_("Throughput levels"),
50 help=_("Please note: in a few cases the automatic detection of the link speed "
51 "does not work. In these cases you have to set the link speed manually "
52 "below if you want to monitor percentage values"),
55 title
=_("Used bandwidth of port relative to the link speed"),
57 Percentage(title
=_("Warning at"), unit
=_("percent")),
58 Percentage(title
=_("Critical at"), unit
=_("percent")),
61 title
=_("Used Bandwidth of port in megabyte/s"),
63 Integer(title
=_("Warning at"), unit
=_("MByte/s")),
64 Integer(title
=_("Critical at"), unit
=_("MByte/s")),
69 title
=_("Assumed link speed"),
70 help=_("If the automatic detection of the link speed does "
71 "not work you can set the link speed here."),
75 title
=_("CRC errors rate"),
77 Percentage(title
=_("Warning at"), unit
=_("percent")),
78 Percentage(title
=_("Critical at"), unit
=_("percent")),
82 title
=_("Enc-Out frames rate"),
84 Percentage(title
=_("Warning at"), unit
=_("percent")),
85 Percentage(title
=_("Critical at"), unit
=_("percent")),
89 title
=_("No-TxCredits errors"),
91 Percentage(title
=_("Warning at"), unit
=_("percent")),
92 Percentage(title
=_("Critical at"), unit
=_("percent")),
96 title
=_("C3 discards"),
98 Percentage(title
=_("Warning at"), unit
=_("percent")),
99 Percentage(title
=_("Critical at"), unit
=_("percent")),
103 title
=_("Averaging"),
104 help=_("If this parameter is set, all throughputs will be averaged "
105 "over the specified time interval before levels are being applied. Per "
106 "default, averaging is turned off. "),
114 # title=_("Allowed states (otherwise check will be critical)"),
118 # (3, _("bypassed")),
120 # (5, _("loopback")),
123 # (8, _("linkdown")),
125 # title=_("Physical state of port"),
127 # label=_("ignore physical state"),
132 # title=_("Allowed states (otherwise check will be critical)"),
139 # (6, _("not participating")),
140 # (7, _("initializing")),
144 # title=_("Operational state"),
146 # label=_("ignore operational state"),
151 # title=_("Allowed states (otherwise check will be critical)"),
156 # (4, _("bypassed")),
157 # (5, _("diagnostics")),
159 # title=_("Administrative state"),
161 # label=_("ignore administrative state"),
165 title
=_("port name"),
166 help=_("The name of the FC port"),