Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 91e432a1 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

Delete stp_topo_change.py

parent 7f72737b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: GNU General Public License v2
#
# Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
#
# 2022-11-30: fixed CheckParameterRulespecWithoutItem (from CheckParameterRulespecWithItem)
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
Integer,
FixedValue,
Tuple,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithoutItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_fw_ls():
return Dictionary(
elements=[
('always_ok',
FixedValue(
True,
title=_('Always OK'),
totext=_('Always OK enabled'),
help=_('Always return state as OK.'),
)),
('levels_lower',
Tuple(
title=_('Time offset'),
help=_('This rule sets the parameters for the Cisco Spanning-Tree Topology Changes.'),
elements=[
Integer(title=_('Warning below'), minvalue=0, unit=_('Seconds'), default_value=900),
Integer(title=_('Critical below'), minvalue=0, unit=_('Seconds'), default_value=600),
])),
],
)
rulespec_registry.register(
CheckParameterRulespecWithoutItem(
check_group_name='stp_topo_change',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_fw_ls,
title=lambda: _('STP Topology change'), # Cisco Spanning-Tree Topology Changes
))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment