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 (
36 from cmk
.gui
.plugins
.wato
import (
37 RulespecGroupCheckParametersApplications
,
38 register_check_parameters
,
41 register_check_parameters(
42 RulespecGroupCheckParametersApplications
,
44 _("MSSQL Size of Tablespace"),
49 title
=_("Upper levels for size"),
50 elements
=[Filesize(title
=_("Warning at")),
51 Filesize(title
=_("Critical at"))])),
54 title
=_("Upper levels for reserved space"),
57 title
=_("Absolute levels"),
59 Filesize(title
=_("Warning at")),
60 Filesize(title
=_("Critical at"))
63 title
=_("Percentage levels"),
65 Percentage(title
=_("Warning at")),
66 Percentage(title
=_("Critical at"))
71 title
=_("Upper levels for data"),
74 title
=_("Absolute levels"),
76 Filesize(title
=_("Warning at")),
77 Filesize(title
=_("Critical at"))
80 title
=_("Percentage levels"),
82 Percentage(title
=_("Warning at")),
83 Percentage(title
=_("Critical at"))
88 title
=_("Upper levels for indexes"),
91 title
=_("Absolute levels"),
93 Filesize(title
=_("Warning at")),
94 Filesize(title
=_("Critical at"))
97 title
=_("Percentage levels"),
99 Percentage(title
=_("Warning at")),
100 Percentage(title
=_("Critical at"))
105 title
=_("Upper levels for unused space"),
108 title
=_("Absolute levels"),
110 Filesize(title
=_("Warning at")),
111 Filesize(title
=_("Critical at"))
114 title
=_("Percentage levels"),
116 Percentage(title
=_("Warning at")),
117 Percentage(title
=_("Critical at"))
122 title
=_("Lower levels for unallocated space"),
125 title
=_("Absolute levels"),
127 Filesize(title
=_("Warning below")),
128 Filesize(title
=_("Critical below"))
131 title
=_("Percentage levels"),
133 Percentage(title
=_("Warning below")),
134 Percentage(title
=_("Critical below"))
138 TextAscii(title
=_("Tablespace name"), allow_empty
=False),