Exemplo n.º 1
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

from cmk.gui.i18n import _
from cmk.gui.plugins.wato import register_check_parameters, RulespecGroupCheckParametersApplications
from cmk.gui.valuespec import Dictionary, MonitoringState, TextInput

register_check_parameters(
    RulespecGroupCheckParametersApplications,
    "oracle_sql",
    _("Oracle Custom SQLs"),
    Dictionary(elements=[
        ("instance_error_state",
         MonitoringState(title=_("Instance error state"))),
        ("perfdata_error_state",
         MonitoringState(title=_("Perfdata error state"))),
    ], ),
    TextInput(title=_("Custom SQL")),
    "dict",
)
Exemplo n.º 2
0
register_check_parameters(
    RulespecGroupCheckParametersNetworking, "checkpoint_packets",
    _("Checkpoint Firewall Packet Rates"),
    Dictionary(elements=[
        ("accepted",
         Levels(title=_("Maximum Rate of Accepted Packets"),
                default_value=None,
                default_levels=(100000, 200000),
                unit="pkts/sec")),
        ("rejected",
         Levels(title=_("Maximum Rate of Rejected Packets"),
                default_value=None,
                default_levels=(100000, 200000),
                unit="pkts/sec")),
        ("dropped",
         Levels(title=_("Maximum Rate of Dropped Packets"),
                default_value=None,
                default_levels=(100000, 200000),
                unit="pkts/sec")),
        ("logged",
         Levels(title=_("Maximum Rate of Logged Packets"),
                default_value=None,
                default_levels=(100000, 200000),
                unit="pkts/sec")),
        ("espencrypted",
         Levels(title=_("Maximum Rate of ESP Encrypted Packets"),
                default_value=None,
                default_levels=(100000, 200000),
                unit="pkts/sec")),
        ("espdecrypted",
         Levels(title=_("Maximum Rate of ESP Decrypted Packets"),
                default_value=None,
                default_levels=(100000, 200000),
                unit="pkts/sec")),
    ]), None, "dict")