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

update project

parent f1e3476a
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/inv_cisco_wlc_clients-0.5.1-20240308.mkp "inv_cisco_wlc_clients-0.5.1-20240308.mkp"
# Cisco WLC client inventory plugin # Cisco WLC client inventory plugin
Adds the WLC wireless clients information to the inventory Adds the WLC wireless clients information to the inventory
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
from cmk.gui.i18n import _
from cmk.gui.plugins.wato.utils import (
HostRulespec,
rulespec_registry,
)
from cmk.gui.valuespec import (
Dictionary,
ListChoice,
)
from cmk.gui.plugins.wato.inventory import (
RulespecGroupInventory,
)
_removecolumns_cisco_wlc_clients = [
# 'index': {'title', 'Index'),
# 'username': {'title', 'Username'),
# 'uptime': {'title', 'Uptime'),
# 'ipaddress': {'title', 'IP address'),
# 'apmacaddress': {'title', 'AP MAC address'),
# 'ssid': {'title', 'SSID'),
# 'channel': {'title', 'Channel'),
# 'accessvlan': {'title', 'Access VLAN'),
# 'devicetype': {'title', 'Device type'),
# 'protocol': {'title', 'Protocol'),
# 'status': {'title', 'Status'),
('ieee80211ucapable', '802.11u capable'),
('aaaoverrideaclapplied', 'AAA overide ACL applied'),
('aaaoverrideaclname', 'AAA overide ACL name'),
('aaarole', 'AAA role'),
('aclapplied', 'ACL applied'),
('aclname', 'ACL name'),
('aproammacaddress', 'AP roam MAC address'),
('associationmode', 'Association mode'),
('authentication', 'Authentication'),
('authmode', 'Auth mode'),
('currenttxrateset', 'Current TX rate (MBit/s)'),
('datarateset', 'Data rate set'),
('dataswitching', 'Data switching'),
('hreapapauth', 'HREAP AP auth'),
('iftype', 'Interface type'),
('ipv6aclapplied', 'IPv6 ACL applied'),
('ipv6aclname', 'IPv6 ACL name'),
('logintime', 'Login time'),
('macaddress', 'MAC Addresse'),
('mdnsadvcount', 'mDNS adv count'),
('mdnsprofile', 'mDNS profile'),
('nacstate', 'NAC state'),
('policyname', 'Policy name'),
('posturestate', 'Posture state'),
('powersavemode', 'Power save mode'),
('quarantinevlan', 'Quarantine VLAN'),
('reasoncode', 'Reason code'),
('redirecturl', 'Redirect URL'),
('securitytagid', 'Security tag ID'),
('sessionid', 'Session ID'),
('typekts', 'NEC KTS SIP client'),
('userauthtype', 'User auth type'),
('wgbmacaddress', 'WGB MAC address'),
('wgbstatus', 'WGB status'),
('wlanprofilename', 'WLAN profile name'),
]
def _valuespec_inv_cisco_wlc_clients():
return Dictionary(
title=_('Cisco WLC Clients'),
help=_('This inventory plugin collects all the client information from a Cisco Wireless LAN Controller. '
'To use this plugin you must also enable "Status data inventory" in a "Do hardware/software inventory" '
'rule.'),
elements=[
('removecolumns',
ListChoice(
title=_('list of columns to remove'),
help=_('information to remove from inventory'),
choices=_removecolumns_cisco_wlc_clients,
default_value=[],
)),
],
)
rulespec_registry.register(
HostRulespec(
group=RulespecGroupInventory,
match_type='dict',
name='inv_parameters:inv_cisco_wlc_clients',
valuespec=_valuespec_inv_cisco_wlc_clients,
))
File deleted
File added
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
'2021-07-12: rewritten for CMK 2.0\n', '2021-07-12: rewritten for CMK 2.0\n',
'download_url': 'http://thl-cmk.hopto.org', 'download_url': 'http://thl-cmk.hopto.org',
'files': {'agent_based': ['inv_cisco_wlc_clients.py'], 'files': {'agent_based': ['inv_cisco_wlc_clients.py'],
'gui': ['views/inv_cisco_wlc_clients.py', 'gui': ['wato/check_parameters/inv_cisco_wlc_clients.py'],
'wato/check_parameters/inv_cisco_wlc_clients.py']}, 'web': ['plugins/views/inv_cisco_wlc_clients.py']},
'name': 'inv_cisco_wlc_clients', 'name': 'inv_cisco_wlc_clients',
'title': 'inventory of cisco WLC clients', 'title': 'inventory of cisco WLC clients',
'version': '0.5.0-20230616', 'version': '0.5.1-20240308',
'version.min_required': '2.2.0b1', 'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p2', 'version.packaged': '2.2.0p17',
'version.usable_until': None} 'version.usable_until': None}
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
# 2023-06-14: removed declare_invtable_view from view definition on cmk 2.2 (see werk 15493) # 2023-06-14: removed declare_invtable_view from view definition on cmk 2.2 (see werk 15493)
# changed inventory_displayhints import (see werk 15493) # changed inventory_displayhints import (see werk 15493)
# 2024-03-08: moved view back to ~/local/share/check_mk/web/plugins/views
from cmk.gui.i18n import _ from cmk.gui.i18n import _
from cmk.gui.views.inventory.registry import inventory_displayhints from cmk.gui.views.inventory.registry import inventory_displayhints
......
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