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 66cfb3d6 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

Delete cisco_eigrp_peers.py

parent a9e539a2
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
# Date : 2017-12-25
#
# Check_MK cisco_eigrp_peer WATO plugin
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
Integer,
TextAscii,
Tuple,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_cisco_eigrp_peers():
return Dictionary(
help=_(''),
elements=[
('minuptime',
Tuple(
title=_('Minimum uptime for peer. Default is 1/2 hours.'),
help=_('Set the time in seconds, a peer must be up before the peer is considered stable.'
'If the peer uptime less then X, the check outcome is set to warning/critical.'),
elements=[
Integer(title=_('Warning below'),
unit='seconds',
default_value=7200,
help=_('The uptime in seconds below which a warning state is triggered. Default is 7200s'),
),
Integer(title=_('Critical below'),
unit='seconds',
default_value=3600,
help=_('The uptime in seconds below which a critical state is triggered. default is 3600s'),
)
],
)),
],
)
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='cisco_eigrp_peers',
group=RulespecGroupCheckParametersNetworking,
item_spec=lambda: TextAscii(title=_('Cisco EIGRP peer'), ),
match_type='dict',
parameter_valuespec=_parameter_valuespec_cisco_eigrp_peers,
title=lambda: _('Cisco EIGRP peer'),
))
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