def _parameter_valuespec_ceph_osds(): return Dictionary( elements=[ ( "num_out_osds", Tuple( title=_("Upper levels for number of OSDs which are out"), elements=[ Percentage(title=_("Warning at")), Percentage(title=_("Critical at")), ], ), ), ( "num_down_osds", Tuple( title=_("Upper levels for number of OSDs which are down"), elements=[ Percentage(title=_("Warning at")), Percentage(title=_("Critical at")), ], ), ), ] + ceph_epoch_element(_("OSDs epoch levels and average")), )
# under the terms of the GNU General Public License as published by # the Free Software Foundation in version 2. check_mk is distributed # in the hope that it will be useful, but WITHOUT ANY WARRANTY; with- # out even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the GNU General Public License for more de- # tails. You should have received a copy of the GNU General Public # License along with GNU Make; see the file COPYING. If not, write # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, # Boston, MA 02110-1301 USA. from cmk.gui.i18n import _ from cmk.gui.valuespec import ( Dictionary, ) from cmk.gui.plugins.wato import ( CheckParameterRulespecWithoutItem, rulespec_registry, RulespecGroupCheckParametersStorage, ) from cmk.gui.plugins.wato.check_parameters.ceph_mgrs import ceph_epoch_element rulespec_registry.register( CheckParameterRulespecWithoutItem( check_group_name="ceph_status", group=RulespecGroupCheckParametersStorage, match_type="dict", parameter_valuespec=lambda: Dictionary(elements=ceph_epoch_element( _("Status epoch levels and average")), ), title=lambda: _("Ceph Status"), ))
def parameter_valuespec(self): return Dictionary(elements=ceph_epoch_element(_("Status epoch levels and average")),)