예제 #1
0
파일: if.py 프로젝트: tboerger/checkmk
        valuespec=_valuespec_if_groups,
    ))


def _help_if_disable_if64_hosts():
    return _("A couple of switches with broken firmware report that they support 64 bit "
             "counters but do not output any actual data in those counters. Listing those "
             "hosts in this rule forces them to use the interface check with 32 bit counters "
             "instead.")


rulespec_registry.register(
    BinaryHostRulespec(
        group=RulespecGroupCheckParametersNetworking,
        help_func=_help_if_disable_if64_hosts,
        name="if_disable_if64_hosts",
        title=lambda: _("Hosts forced to use 'if' instead of 'if64'"),
        is_deprecated=True,
    ))


def _vs_if_errors(title):
    return Alternative(
        title=_("Levels for %s error rates" % title),
        help=_(
            "These levels make the check go warning or critical whenever the "
            "<b>percentual {0} error rate</b> or the <b>absolute {0} error rate</b> of the monitored interface reaches "
            "the given bounds. The percentual {0} error rate is computed by dividing number of "
            "errors by the total number of packets (successful plus errors).".format(title)),
        elements=[
            Tuple(title=_("Percentual levels for %s error rates" % title),
예제 #2
0
파일: rmon.py 프로젝트: majma24/checkmk
#!/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 (
    RulespecGroupCheckParametersNetworking,
    rulespec_registry,
    BinaryHostRulespec,
)

rulespec_registry.register(
    BinaryHostRulespec(
        group=RulespecGroupCheckParametersNetworking,
        help_func=lambda: _(
            "Enabling this option will result in an additional service for every RMON-capable "
            "switch port. This service will provide detailed information on the distribution of "
            "packet sizes transferred over the port. Note: currently, this additional RMON check "
            "does not honor the inventory settings for switch ports."),
        name="rmon_discovery",
        title=lambda: _("Monitor RMON statistics"),
    ))
예제 #3
0
    ))


def _help_if_disable_if64_hosts():
    return _(
        "A couple of switches with broken firmware report that they support 64 bit "
        "counters but do not output any actual data in those counters. Listing those "
        "hosts in this rule forces them to use the interface check with 32 bit counters "
        "instead.")


rulespec_registry.register(
    BinaryHostRulespec(
        group=RulespecGroupCheckParametersNetworking,
        help_func=_help_if_disable_if64_hosts,
        name="if_disable_if64_hosts",
        title=lambda: _(
            "Hosts forced to use <tt>if</tt> instead of <tt>if64</tt>"),
    ))


def _vs_if_errors(title):
    return Alternative(
        title=_("Levels for %s error rates" % title),
        help=
        _("These levels make the check go warning or critical whenever the "
          "<b>percentual {0} error rate</b> or the <b>absolute {0} error rate</b> of the monitored interface reaches "
          "the given bounds. The percentual {0} error rate is computed by dividing number of "
          "errors by the total number of packets (successful plus errors).".
          format(title)),
        elements=[
예제 #4
0
파일: if.py 프로젝트: majma24/checkmk
        valuespec=_valuespec_if_groups,
    ))


def _help_if_disable_if64_hosts():
    return _(
        "A couple of switches with broken firmware report that they support 64 bit "
        "counters but do not output any actual data in those counters. Listing those "
        "hosts in this rule forces them to use the interface check with 32 bit counters "
        "instead.")


rulespec_registry.register(
    BinaryHostRulespec(
        group=RulespecGroupCheckParametersNetworking,
        help_func=_help_if_disable_if64_hosts,
        name="if_disable_if64_hosts",
        title=lambda: _("Hosts forced to use 'if' instead of 'if64'"),
    ))

rulespec_registry.register(
    BinaryHostRulespec(
        group=RulespecGroupCheckParametersNetworking,
        help_func=lambda:
        _("On hosts where this option is activated, the 64-bit SNMP interface check will "
          "in addition to the default output also monitor the admin state "
          "<tt>ifAdminStatus</tt>. The admin state can be used both when configuring the "
          "<a href='wato.py?mode=edit_ruleset&varname=inventory_df_rules'>discovery of "
          "interfaces (\"Network interface and switch port discovery\")</a> and the "
          "<a href='wato.py?mode=edit_ruleset&varname=checkgroup_parameters:if'>corresponding "
          "monitoring states (\"Network interfaces and switch ports\")</a>. Note that activating "
          "this option will lead to an increase in SNMP traffic of approximately 5%. Also note "