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

update project

parent f4f35c84
No related branches found
No related tags found
No related merge requests found
...@@ -211,51 +211,51 @@ def parse_inv_cisco_wlc_clients(string_table: StringTable): ...@@ -211,51 +211,51 @@ def parse_inv_cisco_wlc_clients(string_table: StringTable):
client = {} client = {}
client['status_columns'] = {} client['status_columns'] = {}
client['index'] = index client['index'] = index
client['status_columns']['username'] = username client['username'] = username
client['status_columns']['wlanprofilename'] = wlanprofilename client['wlanprofilename'] = wlanprofilename
client['status_columns']['ipaddress'] = ipaddress client['ipaddress'] = ipaddress
client['status_columns']['quarantinevlan'] = quarantinevlan client['quarantinevlan'] = quarantinevlan
client['status_columns']['accessvlan'] = accessvlan client['accessvlan'] = accessvlan
client['status_columns']['logintime'] = logintime client['logintime'] = logintime
client['status_columns']['uptime'] = uptime client['uptime'] = uptime
client['status_columns']['currenttxrateset'] = currenttxrateset client['currenttxrateset'] = currenttxrateset
client['status_columns']['datarateset'] = datarateset client['datarateset'] = datarateset
client['status_columns']['aclname'] = aclname client['aclname'] = aclname
client['status_columns']['redirecturl'] = redirecturl client['redirecturl'] = redirecturl
client['status_columns']['aaaoverrideaclname'] = aaaoverrideaclname client['aaaoverrideaclname'] = aaaoverrideaclname
client['status_columns']['ssid'] = ssid client['ssid'] = ssid
client['status_columns']['securitytagid'] = securitytagid client['securitytagid'] = securitytagid
client['status_columns']['ipv6aclname'] = ipv6aclname client['ipv6aclname'] = ipv6aclname
client['status_columns']['channel'] = channel client['channel'] = channel
client['status_columns']['sessionid'] = sessionid client['sessionid'] = sessionid
client['status_columns']['mdnsprofile'] = mdnsprofile client['mdnsprofile'] = mdnsprofile
client['status_columns']['mdnsadvcount'] = mdnsadvcount client['mdnsadvcount'] = mdnsadvcount
client['status_columns']['policyname'] = policyname client['policyname'] = policyname
client['status_columns']['aaarole'] = aaarole client['aaarole'] = aaarole
client['status_columns']['devicetype'] = devicetype client['devicetype'] = devicetype
client['status_columns']['macaddress'] = _render_mac_address(macaddress) client['macaddress'] = _render_mac_address(macaddress)
client['status_columns']['apmacaddress'] = _render_mac_address(apmacaddress) client['apmacaddress'] = _render_mac_address(apmacaddress)
client['status_columns']['aproammacaddress'] = _render_mac_address(aproammacaddress) client['aproammacaddress'] = _render_mac_address(aproammacaddress)
client['status_columns']['wgbmacaddress'] = _render_mac_address(wgbmacaddress) client['wgbmacaddress'] = _render_mac_address(wgbmacaddress)
client['status_columns']['ieee80211ucapable'] = _enable_disable.get(ieee80211ucapable) client['ieee80211ucapable'] = _enable_disable.get(ieee80211ucapable)
client['status_columns']['posturestate'] = _enable_disable.get(posturestate) client['posturestate'] = _enable_disable.get(posturestate)
client['status_columns']['typekts'] = _enable_disable.get(typekts) client['typekts'] = _enable_disable.get(typekts)
client['status_columns']['aclapplied'] = _isaclapplied.get(aclapplied) client['aclapplied'] = _isaclapplied.get(aclapplied)
client['status_columns']['aaaoverrideaclapplied'] = _isaclapplied.get(aaaoverrideaclapplied) client['aaaoverrideaclapplied'] = _isaclapplied.get(aaaoverrideaclapplied)
client['status_columns']['ipv6aclapplied'] = _isaclapplied.get(ipv6aclapplied) client['ipv6aclapplied'] = _isaclapplied.get(ipv6aclapplied)
client['status_columns']['status'] = _clientstatus.get(status) client['status'] = _clientstatus.get(status)
client['status_columns']['wgbstatus'] = _wgbstatus.get(wgbstatus) client['wgbstatus'] = _wgbstatus.get(wgbstatus)
client['status_columns']['protocol'] = _protocol.get(protocol) client['protocol'] = _protocol.get(protocol)
client['status_columns']['associationmode'] = _associationmode.get(associationmode) client['associationmode'] = _associationmode.get(associationmode)
client['status_columns']['iftype'] = _interfacetype.get(iftype) client['iftype'] = _interfacetype.get(iftype)
client['status_columns']['nacstate'] = _nacstate.get(nacstate) client['nacstate'] = _nacstate.get(nacstate)
client['status_columns']['powersavemode'] = _powersavemode.get(powersavemode) client['powersavemode'] = _powersavemode.get(powersavemode)
client['status_columns']['hreapapauth'] = _hreapapauth.get(hreapapauth) client['hreapapauth'] = _hreapapauth.get(hreapapauth)
client['status_columns']['dataswitching'] = _dataswitching.get(dataswitching) client['dataswitching'] = _dataswitching.get(dataswitching)
client['status_columns']['authentication'] = _authentication.get(authentication) client['authentication'] = _authentication.get(authentication)
client['status_columns']['authmode'] = _authmode.get(authmode) client['authmode'] = _authmode.get(authmode)
client['status_columns']['reasoncode'] = _reasoncode.get(reasoncode) client['reasoncode'] = _reasoncode.get(reasoncode)
client['status_columns']['userauthtype'] = _userauthtype.get(userauthtype) client['userauthtype'] = _userauthtype.get(userauthtype)
clients.append(client) clients.append(client)
return clients return clients
......
#!/usr/bin/env python3 # !/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
#
# License: GNU General Public License v2
#
# Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
# Date : 2016-04-08
# 2023-06-14: removed declare_invtable_view from view definition on cmk 2.2 (see werk 15493)
# changed inventory_displayhints import (see werk 15493)
from cmk.gui.plugins.views.utils import (
inventory_displayhints,
)
from cmk.gui.i18n import _ from cmk.gui.i18n import _
from cmk.gui.plugins.views.inventory import declare_invtable_view from cmk.gui.views.inventory.registry import inventory_displayhints
inventory_displayhints.update({ inventory_displayhints.update({
'.networking.wlan.controller.clients:': { '.networking.wlan.controller.clients:': {
...@@ -64,5 +70,3 @@ inventory_displayhints.update({ ...@@ -64,5 +70,3 @@ inventory_displayhints.update({
'.networking.wlan.controller.clients:*.aaarole': {'title': _('AAA role'), }, '.networking.wlan.controller.clients:*.aaarole': {'title': _('AAA role'), },
'.networking.wlan.controller.clients:*.userauthtype': {'title': _('User auth type'), }, '.networking.wlan.controller.clients:*.userauthtype': {'title': _('User auth type'), },
}) })
declare_invtable_view('invwlcclients', '.networking.wlan.controller.clients:', _('WLC clients'), _('WLC clients'))
# !/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-04-08
# 2023-06-14: moved wato file to check_parameters sub directory
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 added
No preview for this file type
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
'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': ['views/inv_cisco_wlc_clients.py',
'wato/inv_cisco_wlc_clients.py']}, 'wato/check_parameters/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.3.1-20230614', 'version': '0.5.0-20230616',
'version.min_required': '2.1.0b1', 'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p2', 'version.packaged': '2.2.0p2',
'version.usable_until': '2.2.0b1'} 'version.usable_until': None}
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