Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
258 changes: 118 additions & 140 deletions ..._mk/agents/special/agent_unifi_controller → agents/special/agent_unifi_controller
100644 → 100755

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi Controller
agents: unifi_controller
catalog: networking
licence: MIT
catalog: networking/unifi
distribution: unifi
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each device

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi Device
agents: unifi_controller
catalog: networking
licence: MIT
catalog: networking/unifi
distribution: unifi
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each device

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi Devicelist
catalog: networking
catalog: networking/unifi
distribution: unifi
agents: unifi_controller
licence: MIT
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each device

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi Network Port
agents: unifi_controller
catalog: networking
licence: MIT
catalog: networking/unifi
distribution: unifi
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each Port

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi WLAN Radio
agents: unifi_controller
catalog: networking
licence: MIT
catalog: networking/unifi
distribution: unifi
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each Radio

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi SSID
agents: unifi_controller
catalog: networking
licence: MIT
catalog: networking/unifi
distribution: unifi
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each SSID

7 changes: 4 additions & 3 deletions share/check_mk/checkman/unifi_sites → checkman/unifi_sites
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi Site
agents: unifi_controller
catalog: networking
licence: MIT
catalog: networking/unifi
distribution: unifi
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each Site

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: Unifi Devicelist
catalog: networking
catalog: networking/unifi
distribution: unifi
agents: unifi_controller
licence: MIT
license: MIT
description:
plz fill me

Expand All @@ -10,4 +11,4 @@ item:

inventory:
One Service for each device

6 changes: 4 additions & 2 deletions lib/check_mk/base/plugins/agent_based/unifi_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
## MIT License
##
## Copyright (c) 2024 Bash Club
## Copyright (c) 2021 Bash Club
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -120,7 +120,7 @@ def check_unifi_controller(item,section):
state=State.OK,
summary=f"Version: {section.cloudkey_version}"
)
if _safe_int(section.cloudkey_update_available) > 0:
if int(section.cloudkey_update_available) > 0:
yield Result(
state=State.WARN,
notice=_("Update available")
Expand Down Expand Up @@ -761,3 +761,5 @@ def check_unifi_ssidlist(item,section):
)




76 changes: 0 additions & 76 deletions share/check_mk/inventory/unifi_controller

This file was deleted.

Binary file added unifi_controller-0.88.5.mkp
Binary file not shown.