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 (
38 from cmk
.gui
.plugins
.wato
import (
39 CheckParameterRulespecWithItem
,
41 RulespecGroupCheckParametersStorage
,
45 @rulespec_registry.register
46 class RulespecCheckgroupParametersFcPort(CheckParameterRulespecWithItem
):
49 return RulespecGroupCheckParametersStorage
52 def check_group_name(self
):
57 return _("FibreChannel Ports (FCMGMT MIB)")
64 def parameter_valuespec(self
):
69 title
=_("Throughput levels"),
70 help=_("Please note: in a few cases the automatic detection of the link speed "
71 "does not work. In these cases you have to set the link speed manually "
72 "below if you want to monitor percentage values"),
75 title
=_("Used bandwidth of port relative to the link speed"),
77 Percentage(title
=_("Warning at"), unit
=_("percent")),
78 Percentage(title
=_("Critical at"), unit
=_("percent")),
82 title
=_("Used Bandwidth of port in megabyte/s"),
84 Integer(title
=_("Warning at"), unit
=_("MByte/s")),
85 Integer(title
=_("Critical at"), unit
=_("MByte/s")),
92 title
=_("Assumed link speed"),
93 help=_("If the automatic detection of the link speed does "
94 "not work you can set the link speed here."),
98 title
=_("CRC errors rate"),
100 Percentage(title
=_("Warning at"), unit
=_("percent")),
101 Percentage(title
=_("Critical at"), unit
=_("percent")),
106 title
=_("Enc-Out frames rate"),
108 Percentage(title
=_("Warning at"), unit
=_("percent")),
109 Percentage(title
=_("Critical at"), unit
=_("percent")),
114 title
=_("No-TxCredits errors"),
116 Percentage(title
=_("Warning at"), unit
=_("percent")),
117 Percentage(title
=_("Critical at"), unit
=_("percent")),
122 title
=_("C3 discards"),
124 Percentage(title
=_("Warning at"), unit
=_("percent")),
125 Percentage(title
=_("Critical at"), unit
=_("percent")),
130 title
=_("Averaging"),
131 help=_("If this parameter is set, all throughputs will be averaged "
132 "over the specified time interval before levels are being applied. Per "
133 "default, averaging is turned off. "),
141 # title=_("Allowed states (otherwise check will be critical)"),
145 # (3, _("bypassed")),
147 # (5, _("loopback")),
150 # (8, _("linkdown")),
152 # title=_("Physical state of port"),
154 # label=_("ignore physical state"),
159 # title=_("Allowed states (otherwise check will be critical)"),
166 # (6, _("not participating")),
167 # (7, _("initializing")),
171 # title=_("Operational state"),
173 # label=_("ignore operational state"),
178 # title=_("Allowed states (otherwise check will be critical)"),
183 # (4, _("bypassed")),
184 # (5, _("diagnostics")),
186 # title=_("Administrative state"),
188 # label=_("ignore administrative state"),
195 title
=_("port name"),
196 help=_("The name of the FC port"),