Page 1 of 1

Monitor Ubiquiti Unifi

Posted: Tue Nov 29, 2016 8:10 pm
by mati83
Hi,

I have one AP Ubiquiti Unifi connected to my router Mikrotik and I want my router to report me every 5 minute if the AP Ubiquiti is working correctly.
My question is, how can the Mikrotik validate if the AP Ubiquiti is working? is there a solution for this? any specific instruction to validate it?
Thanks!!

Re: Monitor Ubiquiti Unifi

Posted: Tue Nov 29, 2016 8:59 pm
by jarda
How do you define "working correctly"? Maybe a netwatch could be enough... But anyway, why not to use snmp to check the state directly?

Re: Monitor Ubiquiti Unifi

Posted: Thu Dec 01, 2016 7:02 pm
by mati83
well, basically that the access point is really working :D
I guess SNMP should be good enough... any experience doing it from a router Mikrotik to some Ubiquiti Unifi AP?

Re: Monitor Ubiquiti Unifi

Posted: Fri Dec 02, 2016 12:22 am
by Feklar
Depends on what SNMP server you want to use. It also depends on what OIDs the UniFi access point supports and lets you monitor. Just because it responds to SNMP/ping doesn't mean that it's "working", it is usually a good assumption, but not always. There have been times where one of my access points was accessible and appeared to be working fine, but was not actually broadcasting anymore. Looks like there is a new set of OIDs for the UniFi access points that may contain the number of connected stations, that would tell you if things are working or not.

Depending on what model MikroTik you have, you can install the DUDE and that could work as your SNMP server, otherwise you will need another device/server to handle that.

Re: Monitor Ubiquiti Unifi

Posted: Fri Dec 02, 2016 5:56 am
by rcourtney
You could write a Python script to query Mongo and see packets transfered. If it drops below a level you set, then SMS a message to your phone.
It would not necessarily be running on your Miktotik gear.

Re: Monitor Ubiquiti Unifi

Posted: Fri Dec 02, 2016 6:22 am
by IntrusDave
why not just enable the email alerts from the UniFi controller? that's already built in and requires no more work than entering your SMTP server and email address.

Re: Monitor Ubiquiti Unifi

Posted: Fri Dec 02, 2016 8:09 am
by jarda
Mati83, do you see? A plenty of options. Which of them have you chosen?

Re: Monitor Ubiquiti Unifi

Posted: Wed Dec 14, 2016 4:28 pm
by mati83
I started with netwatch + one scheduled task that checks if the netwatch is OK to send me the notification.
Not the best one but at least I know the AP is on...