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

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • checkmk/cisco/wlc/cisco_wlc_cpu
1 result
Show changes
Commits on Source (2)
......@@ -15,6 +15,7 @@
# 2016-07-02: fixed crit/warn to >=
# 2018-01-15: changed scan function, added wato plugin
# 2021-07-15: rewritten for CMK 2.0
# 2023-06-07: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
#
from typing import Optional
......
File added
File added
No preview for this file type
#!/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 : 2016-03-31
#
# wato plugin for 'cisco_wlc_cpu'
#
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
Tuple,
Integer,
)
from cmk.gui.plugins.wato.utils import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_cisco_wlc_cpu():
return Dictionary(elements=[
('levels_upper',
Tuple(
title=_('Upper levels'),
help=_('Set the maximum for CPU utilization in %'),
elements=[
Integer(title=_('Warning at'), unit='%', default_value=70, minvalue=0, maxvalue=100),
Integer(title=_('Critical at'), unit='%', default_value=80, minvalue=0, maxvalue=100)
],
),
),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='cisco_wlc_cpu',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_cisco_wlc_cpu,
title=lambda: _('Cisco WLC CPU utilization'),
))
......@@ -2,11 +2,10 @@
'description': 'monitor Cisco WLC CPU utilization\n',
'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['cisco_wlc_cpu.py'],
'web': ['plugins/wato/cisco_wlc_cpu.py']},
'gui': ['wato/cisco_wlc_cpu.py']},
'name': 'cisco_wlc_cpu',
'num_files': 2,
'title': 'monitor Cisco WLC CPU usage',
'version': '20210715.v.0.3',
'version.min_required': '2.0.0',
'version.packaged': '2021.07.14',
'version': '0.3.0-20230607',
'version.min_required': '2.1.0b1',
'version.packaged': '2.1.0p21',
'version.usable_until': None}
\ No newline at end of file