diff --git a/mkp/inv_cisco_wlc_clients-0.5.1-20240308.mkp b/mkp/inv_cisco_wlc_clients-0.5.1-20240308.mkp index 65bffb207d2f79186d003f57750d470fdaec9898..ee998223099496c6b627a46f9233dbbd46809839 100644 Binary files a/mkp/inv_cisco_wlc_clients-0.5.1-20240308.mkp and b/mkp/inv_cisco_wlc_clients-0.5.1-20240308.mkp differ diff --git a/web/plugins/views/inv_cisco_wlc_clients.py b/web/plugins/views/inv_cisco_wlc_clients.py deleted file mode 100644 index 9386e64ce083c69a7533d71dc7136afe4dd34025..0000000000000000000000000000000000000000 --- a/web/plugins/views/inv_cisco_wlc_clients.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- - -from cmk.gui.plugins.views import ( - inventory_displayhints, ) -from cmk.gui.i18n import _ -from cmk.gui.plugins.views.inventory import declare_invtable_view - -inventory_displayhints.update({ - '.networking.wlan.controller.clients:': { - 'title': _('WLC clients'), - 'keyorder': [ - 'index', 'username', 'uptime', 'ipaddress', 'apmacaddress', 'ssid', - 'channel', 'accessvlan', 'devicetype', 'protocol', 'status', - ], - 'view': 'invwlcclients_of_host'}, - - '.networking.wlan.controller.clients:*.index': {'title': _('Index'), }, - '.networking.wlan.controller.clients:*.username': {'title': _('Username'), }, - '.networking.wlan.controller.clients:*.uptime': {'title': _('Uptime'), }, - '.networking.wlan.controller.clients:*.ipaddress': {'title': _('IP address'), }, - '.networking.wlan.controller.clients:*.apmacaddress': {'title': _('AP MAC address'), }, - '.networking.wlan.controller.clients:*.ssid': {'title': _('SSID'), }, - '.networking.wlan.controller.clients:*.channel': {'title': _('Channel'), }, - '.networking.wlan.controller.clients:*.accessvlan': {'title': _('Access VLAN'), }, - '.networking.wlan.controller.clients:*.devicetype': {'title': _('Device type'), }, - '.networking.wlan.controller.clients:*.protocol': {'title': _('Protocol'), }, - '.networking.wlan.controller.clients:*.status': {'title': _('Status'), }, - - '.networking.wlan.controller.clients:*.macaddress': {'title': _('MAC Addresse'), }, - '.networking.wlan.controller.clients:*.wlanprofilename': {'title': _('WLAN profile name'), }, - '.networking.wlan.controller.clients:*.wgbstatus': {'title': _('WGB status'), }, - '.networking.wlan.controller.clients:*.wgbmacaddress': {'title': _('WGB MAC address'), }, - '.networking.wlan.controller.clients:*.associationmode': {'title': _('Association mode'), }, - '.networking.wlan.controller.clients:*.iftype': {'title': _('Interface type'), }, - '.networking.wlan.controller.clients:*.nacstate': {'title': _('NAC state'), }, - '.networking.wlan.controller.clients:*.quarantinevlan': {'title': _('Quarantine VLAN'), }, - '.networking.wlan.controller.clients:*.logintime': {'title': _('Login time'), }, - '.networking.wlan.controller.clients:*.powersavemode': {'title': _('Power save mode'), }, - '.networking.wlan.controller.clients:*.currenttxrateset': {'title': _('Current TX rate (MBit/s)'), }, - '.networking.wlan.controller.clients:*.datarateset': {'title': _('Data rate set'), }, - '.networking.wlan.controller.clients:*.hreapapauth': {'title': _('HREAP AP auth'), }, - '.networking.wlan.controller.clients:*.ieee80211ucapable': {'title': _('802.11u capable'), }, - '.networking.wlan.controller.clients:*.posturestate': {'title': _('Posture state'), }, - '.networking.wlan.controller.clients:*.aclname': {'title': _('ACL name'), }, - '.networking.wlan.controller.clients:*.aclapplied': {'title': _('ACL applied'), }, - '.networking.wlan.controller.clients:*.redirecturl': {'title': _('Redirect URL'), }, - '.networking.wlan.controller.clients:*.aaaoverrideaclname': {'title': _('AAA overide ACL name'), }, - '.networking.wlan.controller.clients:*.aaaoverrideaclapplied': {'title': _('AAA overide ACL applied'), }, - '.networking.wlan.controller.clients:*.securitytagid': {'title': _('Security tag ID'), }, - '.networking.wlan.controller.clients:*.typekts': {'title': _('NEC KTS SIP client'), }, - '.networking.wlan.controller.clients:*.ipv6aclname': {'title': _('IPv6 ACL name'), }, - '.networking.wlan.controller.clients:*.ipv6aclapplied': {'title': _('IPv6 ACL applied'), }, - '.networking.wlan.controller.clients:*.dataswitching': {'title': _('Data switching'), }, - '.networking.wlan.controller.clients:*.authentication': {'title': _('Authentication'), }, - '.networking.wlan.controller.clients:*.authmode': {'title': _('Auth mode'), }, - '.networking.wlan.controller.clients:*.reasoncode': {'title': _('Reason code'), }, - '.networking.wlan.controller.clients:*.sessionid': {'title': _('Session ID'), }, - '.networking.wlan.controller.clients:*.aproammacaddress': {'title': _('AP roam MAC address'), }, - '.networking.wlan.controller.clients:*.mdnsprofile': {'title': _('mDNS profile'), }, - '.networking.wlan.controller.clients:*.mdnsadvcount': {'title': _('mDNS adv count'), }, - '.networking.wlan.controller.clients:*.policyname': {'title': _('Policy name'), }, - '.networking.wlan.controller.clients:*.aaarole': {'title': _('AAA role'), }, - '.networking.wlan.controller.clients:*.userauthtype': {'title': _('User auth type'), }, -}) - -declare_invtable_view('invwlcclients', '.networking.wlan.controller.clients:', _('WLC clients'), _('WLC clients')) diff --git a/web/plugins/wato/inv_cisco_wlc_clients.py b/web/plugins/wato/inv_cisco_wlc_clients.py deleted file mode 100644 index 40a49f1bdd4c807d580c764a2bb0f9bfda68dffa..0000000000000000000000000000000000000000 --- a/web/plugins/wato/inv_cisco_wlc_clients.py +++ /dev/null @@ -1,95 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# - -from cmk.gui.i18n import _ -from cmk.gui.plugins.wato 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, - ))