Skip to content

Commit 519ee43

Browse files
authored
Update unifi_controller.py
Changed Uptime to Unifi Device Uptime because it collides with the service Uptime if you use SNMP monitoring additionally on unifi devices.
1 parent 7c03965 commit 519ee43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/check_mk/base/plugins/agent_based/unifi_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def inventory_unifi_device_shortlist(section):
271271
def discovery_unifi_device(section):
272272
yield Service(item="Device Status")
273273
yield Service(item="Unifi Device")
274-
yield Service(item="Uptime")
274+
yield Service(item="Unifi Device Uptime")
275275
yield Service(item="Active-User")
276276
if section.type != "uap": # kein satisfaction bei ap .. radio/ssid haben schon
277277
yield Service(item="Satisfaction")
@@ -317,7 +317,7 @@ def check_unifi_device(item,section):
317317
)
318318
yield Metric("user_sta",_active_user)
319319
yield Metric("guest_sta",_safe_int(section.guest_num_sta))
320-
if item == "Uptime":
320+
if item == "Unifi Device Uptime":
321321
_uptime = int(section.uptime) if section.uptime else -1
322322
if _uptime > 0:
323323
yield Result(

0 commit comments

Comments
 (0)