diff --git a/web/plugins/wato/cisco_eigrp_peers.py b/web/plugins/wato/cisco_eigrp_peers.py deleted file mode 100644 index 5ed6f97e456753f5fb8f31509a175770329cd2c1..0000000000000000000000000000000000000000 --- a/web/plugins/wato/cisco_eigrp_peers.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/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'), - ))