Nagios Plugin to check a Unifi Controller (Accesspoints and Switches).
Api Version 1.1.68
You need to install php-curl
mode - controller | = Controller Version, warning if there is an update |
site | = list all Site ID and Name |
clients | = list all clients (console) |
clients_wifi | = list all wifi clients with connection speed (console) |
clients_name + Accesspoint | = list all clients of an accesspoint |
clients_name_guest + Accesspoint | = list all clients and guests of an accesspoint |
clients_count + Accesspoint | = count clients of an accesspoint |
clients_count_guest + Accesspoint | = count clients and guests of an accesspoint |
channels + Accesspoint | = channels 2GHz/5GHz of an accesspoint |
transfer + Accesspoint | = rx/tx transfer of an accesspoint (Kbit/Mbit) |
transfer+ + Accesspoint | = rx/tx transfer of an accesspoint (Kbyte/Mbyte) |
uptime + Accesspoint/Switch | = uptime and firmware of an accesspoint/switch |
update + Accesspoint/Switch | = update firmware is available of an accesspointi/switch (point release, major version, minor version) |
uplink + Accesspoint warn crit | = uplink of an accesspoint (wireless: with connection speed and warn/critical) |
experience + Accesspoint warn crit | = wireless experience of an accesspoint with warn/critical |
utilisation + Accesspoint warn cri | = wireless utilisation of an accesspoint with warn/critical (2GHz,5GHz) |
mem + Accesspoint warn crit | = memory usage output Mb of an accesspoint or a switch with warn/critical percent |
mem% + Accesspoint warn crit | = memory usage output percent of an accesspoint or a switch with warn/critical percent |
cpu + Accesspoint/Switch warn crit | = cpu and load combination usage of an accesspoint or a switch with warn/critical procent |
cpu% + Accesspoint/Switch warn cri | = cpu usage of an accesspoint or a switch with warn/critical procent |
load + Accesspoint/Switch warn crit | = linux_load usage of an accesspoint or a switch with warn/critical 1,5,15 |
temperature + Switch | = temperature of a switch with warn/critical |
ap warn crit | = count Accesspoint (Online and Offline) with warn and critical offline Accesspoints |
switch warn crit | = count Switch (Online and Offline) with warn and critical offline Switch |
Version 1.20210227
change help
add client bands to clients_name/clients_name_guest
Version 1.20210225
correct channels (-1/+1)
correct $dir_unifi_client
Version 1.20210219
model is integrated in Api
update ap/switch now with warning and critical
add site (to find the sideid)
add multisite (-S)
Version 1.20210211
minor bugs fixes
add transfer+
Version 1.20210211
minor bugs fixes
change Client.php to unifi_client.php
change default path from /usr/local/nagios/libexec to the path of the script
change modes:
linux_load to load
linux_cpu to cpu%
Version 1.20210210
add following checks:
- transfer
- experience
- utilisation
- clients_name_guest
- clients_count_guest
- linux_load
- linux_cpu
- update
Thank's again to Keith from UK for the input.
Version 1.20210204
-C - config file unifi.php instead of the controller parameter -H,-u,-p,-P and -s
add mem% output memory percent
perfdata uptime (seconds)
Thank's to Keith from UK for the input.
Version 1.20210130
uplink accesspoint now also wire
Version 1.20210127
new API Version 1.1.68
count Accesspoint and count Switch
Version 1.20210124
minor bugs fixes
Version 1.20210118
new API Version 1.1.63
Version 1.20210106
cpu now with warn and crit percent
Version 1.20210104
mapping short label type to real name (uptime)