From 1d7148441bd58ac59863034e7d84455c190faef2 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Wed, 7 Jun 2023 16:40:18 +0000 Subject: [PATCH] Delete cisco_flash.py --- web/plugins/metrics/cisco_flash.py | 86 ------------------------------ 1 file changed, 86 deletions(-) delete mode 100644 web/plugins/metrics/cisco_flash.py diff --git a/web/plugins/metrics/cisco_flash.py b/web/plugins/metrics/cisco_flash.py deleted file mode 100644 index 2c1805f..0000000 --- a/web/plugins/metrics/cisco_flash.py +++ /dev/null @@ -1,86 +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-10-28 -# -# Cisco flash metrics plugin -# -# change log -# 2019-10-28: initial release -# 2021-07-31: rewritten for CMK 2.0 -# - -from cmk.gui.i18n import _ - -from cmk.gui.plugins.metrics import ( - metric_info, - graph_info, - perfometer_info - -) - -metric_info['cisco_flash_partusedspace'] = { - 'title': _('Sapce used'), - 'unit': 'bytes', - 'color': '36/a', -} - -metric_info['cisco_flash_percent_used'] = { - 'title': _('Percent used'), - 'unit': '%', - 'color': '26/a', -} - -metric_info['cisco_flash_partfilecount'] = { - 'title': _('# of files'), - 'unit': 'count', - 'color': '21/a', -} - -graph_info['cisco_flash_space_used'] = { - 'title': _('Space used'), - 'metrics': [ - ('cisco_flash_partusedspace', 'area'), - ], - 'scalars': [ - ('cisco_flash_partusedspace:crit', _('crit')), - ('cisco_flash_partusedspace:warn', _('warn')), - ], - "range": (0, "cisco_flash_partusedspace:max"), -} - -graph_info['cisco_flash_percent_used'] = { - 'title': _('Percent used'), - 'metrics': [ - ('cisco_flash_percent_used', 'area'), - ], - 'scalars': [ - ('cisco_flash_percent_used:crit', _('crit')), - ('cisco_flash_percent_used:warn', _('warn')), - ], - "range": (0, 100), -} - -graph_info['cisco_flash_files_on_partition'] = { - 'title': _('# of files on partition'), - 'metrics': [ - ('cisco_flash_partfilecount', 'area'), - ], -} - -perfometer_info.append(('stacked', [ - { - 'type': 'linear', - 'segments': ['cisco_flash_percent_used'], - 'total': 100, - }, - { - 'type': 'linear', - 'segments': ['cisco_flash_partfilecount'], - 'total': 100000, - } -])) -- GitLab