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

update project

parent 3db41091
No related branches found
No related tags found
No related merge requests found
No preview for this file type
#!/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'))
#!/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,
))
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