mirror of
https://github.com/bashclub/check-unifi-controller.git
synced 2025-07-03 22:59:09 +02:00
Update to 0.83
This commit is contained in:
@ -121,6 +121,44 @@ graph_info["lan_user_sta_combined"] = {
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
metric_info["lan_active_sw"] = {
|
||||
"title": _("Active Switches"),
|
||||
"unit": "count",
|
||||
"color": "13/b",
|
||||
}
|
||||
metric_info["lan_total_sw"] = {
|
||||
"title": _("Total Switches"),
|
||||
"unit": "count",
|
||||
"color": "13/a",
|
||||
}
|
||||
|
||||
graph_info["lan_active_sw_combined"] = {
|
||||
"title" : _("Active Switches"),
|
||||
"metrics" : [
|
||||
("lan_active_sw","area"),
|
||||
("lan_total_sw","line"),
|
||||
],
|
||||
}
|
||||
metric_info["wlan_active_ap"] = {
|
||||
"title": _("Active Accesspoints"),
|
||||
"unit": "count",
|
||||
"color": "13/b",
|
||||
}
|
||||
metric_info["wlan_total_ap"] = {
|
||||
"title": _("Total Accesspoints"),
|
||||
"unit": "count",
|
||||
"color": "13/a",
|
||||
}
|
||||
|
||||
graph_info["wlan_active_ap_combined"] = {
|
||||
"title" : _("Active Accesspoints"),
|
||||
"metrics" : [
|
||||
("wlan_active_ap","area"),
|
||||
("wlan_total_ap","line"),
|
||||
],
|
||||
}
|
||||
|
||||
metric_info["wlan_user_sta"] = {
|
||||
"title": _("WLAN User"),
|
||||
"unit": "count",
|
||||
|
@ -25,11 +25,13 @@
|
||||
from cmk.gui.i18n import _
|
||||
from cmk.gui.plugins.wato import (
|
||||
HostRulespec,
|
||||
CheckParameterRulespecWithItem,
|
||||
IndividualOrStoredPassword,
|
||||
rulespec_registry,
|
||||
)
|
||||
from cmk.gui.valuespec import (
|
||||
Dictionary,
|
||||
Tuple,
|
||||
Alternative,
|
||||
NetworkPort,
|
||||
Checkbox,
|
||||
@ -72,3 +74,28 @@ rulespec_registry.register(
|
||||
valuespec=_valuespec_special_agent_unifi_controller,
|
||||
))
|
||||
|
||||
def _item_spec_unifi_site():
|
||||
return TextAscii(
|
||||
title=_("Site"),
|
||||
help=_("help Site Text")
|
||||
)
|
||||
|
||||
def _parameter_valuespec_unifi_site():
|
||||
return Dictionary(
|
||||
title = _("Unifi Site"),
|
||||
optional_keys=[],
|
||||
elements = [
|
||||
('ignore_alarms', Checkbox(title=_("Ignore Site Alarms"), default_value=False)),
|
||||
]
|
||||
)
|
||||
|
||||
rulespec_registry.register(
|
||||
CheckParameterRulespecWithItem(
|
||||
check_group_name = "unifi_sites",
|
||||
group=RulespecGroupCheckParametersNetworking,
|
||||
item_spec = _item_spec_unifi_site,
|
||||
match_type = "dict",
|
||||
parameter_valuespec=_parameter_valuespec_unifi_site,
|
||||
title=lambda: _("Unifi Site Parameter")
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user