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

Delete cisco_flash.py

parent 97050caf
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 : 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,
}
]))
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