diff --git a/web/plugins/metrics/cisco_flash.py b/web/plugins/metrics/cisco_flash.py deleted file mode 100644 index 2c1805f8187b20fd2905b6aacc174a31db2745a3..0000000000000000000000000000000000000000 --- 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, - } -]))