From 376490fd38d7494f5c5e25297cca7e94c0794cf7 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Wed, 7 Jun 2023 16:39:47 +0000 Subject: [PATCH] Delete cisco_flash.py --- web/plugins/wato/cisco_flash.py | 56 --------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 web/plugins/wato/cisco_flash.py diff --git a/web/plugins/wato/cisco_flash.py b/web/plugins/wato/cisco_flash.py deleted file mode 100644 index e64ce86..0000000 --- a/web/plugins/wato/cisco_flash.py +++ /dev/null @@ -1,56 +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 : 2019-11-04 -# -# -# Check_MK cisco_flash WATO plugin -# -# 2019-11-04: initial release -# 2021-07-31: rewritten for CMK 2.0 -# -# -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_flash(): - return Dictionary( - elements=[ - ('levels_upper_percent', - Tuple( - title=_('Levels for usage in %'), - elements=[ - Integer(title=_('Warning at'), unit='%', default_value=85, minvalue=0, maxvalue=100), - Integer(title=_('Critical at'), unit='%', default_value=90, minvalue=0, maxvalue=100) - ], - - )), - ], - ) - - -rulespec_registry.register( - CheckParameterRulespecWithItem( - check_group_name='cisco_flash', - group=RulespecGroupCheckParametersNetworking, - item_spec=lambda: TextAscii(title=_('Partition specific configuration'), ), - match_type='dict', - parameter_valuespec=_parameter_valuespec_cisco_flash, - title=lambda: _('Cisco flash'), - )) -- GitLab