Community discussions

MikroTik App
 
mati83
Member Candidate
Member Candidate
Topic Author
Posts: 122
Joined: Thu Aug 28, 2014 12:12 am

Monitor Ubiquiti Unifi

Tue Nov 29, 2016 8:10 pm

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!!
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Monitor Ubiquiti Unifi

Tue Nov 29, 2016 8:59 pm

How do you define "working correctly"? Maybe a netwatch could be enough... But anyway, why not to use snmp to check the state directly?
 
mati83
Member Candidate
Member Candidate
Topic Author
Posts: 122
Joined: Thu Aug 28, 2014 12:12 am

Re: Monitor Ubiquiti Unifi

Thu Dec 01, 2016 7:02 pm

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?
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Monitor Ubiquiti Unifi

Fri Dec 02, 2016 12:22 am

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.
 
User avatar
rcourtney
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed May 22, 2013 10:55 pm

Re: Monitor Ubiquiti Unifi

Fri Dec 02, 2016 5:56 am

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.
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: Monitor Ubiquiti Unifi

Fri Dec 02, 2016 6:22 am

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.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Monitor Ubiquiti Unifi

Fri Dec 02, 2016 8:09 am

Mati83, do you see? A plenty of options. Which of them have you chosen?
 
mati83
Member Candidate
Member Candidate
Topic Author
Posts: 122
Joined: Thu Aug 28, 2014 12:12 am

Re: Monitor Ubiquiti Unifi

Wed Dec 14, 2016 4:28 pm

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...

Who is online

Users browsing this forum: dipalpatel, nichky and 36 guests