DESCRIPTION:
I bought UniFi for my home for these reasons:
- Relatively low cost
- Designed for enterprise with centralized controller
- Has an API
- We use it in our office
- To learn more
I made this datasource using Groovy so it will work on Linux or Windows collectors. It shows lots of info including:
List of Access Points with info on:
- Qty of clients
- Bytes used on uplink port Tx and Rx
- Bytes used by 2GHz client devices and 5GHz client devices
- CPU, memory, and uptime
List of Client devices connected with info on:
- Bytes transmitted and received and rate transmit and receive
- Signal strength in dBm
- Uptime
INSTRUCTIONS:
Download the DataSource for APs and download the datasource for Clients.
Import them into your LogicMonitor account using Settings > Datasources > Add > From file
If you haven’t already, add your UniFi controller or CloudKey to LogicMonitor and set properties for Unifi.user and Unifi.pass
If you have multiple sites, clone the datasource to make a copy and edit the site name at the top of both scripts in the datasource. I also made a datasource (download) to show the site name because the UniFi web interface has you changing the ‘description’ but the site name is assigned by the system and doesn’t show in the GUI. At least for me, the first site is named ‘default’ even if you change the site name in the GUI.
Test by looking at ‘Raw Data’ tab and graphs.
MISC:
Thanks to Erik Slooff on the Ubiquiti community forum because he made it easier to find the API calls since Ubiquiti has not officially documented them.
Thanks to my co-worker Jerry Wiltse for helping me on the Groovy script. I did my initial one with cURL then PowerShell.
As usual, these datasources are not officially supported by LogicMonitor tech support (until/unless they get reviewed and published in the core repository)
No comments