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

update project

parent 794678a2
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
#
# 2016-03-31: initial release
# 2021-07-15: rewritten for CMK 2.0
# 2023-06-07: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
#
from typing import Dict, Optional
......
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 : 2021-07-15
#
# Check_MK cisco_wlc_power WATO plugin
#
# 2021-07-15: initial version
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
TextAscii,
MonitoringState,
)
from cmk.gui.plugins.wato.utils import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_cisco_wlc_power():
return Dictionary(elements=[
('not_present',
MonitoringState(
default_value=2,
title=_('State if the power supply is not present.'),
help=_('The monitoring state is the power supply is not present')
)),
('not_operational',
MonitoringState(
default_value=2,
title=_('State if the power supply is not operational.'),
help=_('The monitoring state is the power supply is not operational')
)),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='cisco_wlc_power',
group=RulespecGroupCheckParametersNetworking,
item_spec=lambda: TextAscii(title=_('Power Supply #'), ),
match_type='dict',
parameter_valuespec=_parameter_valuespec_cisco_wlc_power,
title=lambda: _('Cisco WLC power supply'),
))
{'author': 'Th.L. (thl-cmk[at]outlook[dot]com)',
'description': 'monitor Cisco WLC power supplys\n',
'description': 'monitor Cisco WLC power supply\n',
'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['cisco_wlc_power.py'],
'checkman': ['cisco_wlc_power'],
'web': ['plugins/wato/cisco_wlc_power.py']},
'gui': ['wato/cisco_wlc_power.py']},
'name': 'cisco_wlc_power',
'num_files': 3,
'title': 'monitor Cisco WLC power supplys',
'version': '20210715.v0.2',
'version.min_required': '2.0.0',
'version.packaged': '2021.07.14',
'version': '0.2.0-20230607',
'version.min_required': '2.1.0b1',
'version.packaged': '2.1.0p21',
'version.usable_until': None}
\ No newline at end of file
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