unifi-event-monitor icon indicating copy to clipboard operation
unifi-event-monitor copied to clipboard

What events is it looking at?

Open pageb018 opened this issue 5 years ago • 4 comments

Thank you so much for this. We have it up and running. We are using SNS notifications to push unifi events to Sumo Logic.

Wondering what events it looks for and how to control what is picked up...

In the Unifi controller I can see "push me", "alert me" and "email me" ....

Is this looking to one of those options?

thanks again!

pageb018 avatar Feb 05 '20 15:02 pageb018

Hi, Thanks! :-)

I believe that these work as follows:

  • email - obviously - send an email
  • alert - add event to the "Alerts" panel
  • event - add it to the "Events" panel
  • push - I have no idea what this does. Maybe shows a notification on a mobile app?

Anyways - my app is simple - it monitors for any event and pushes it to the notification platform (apprise). It's basically the same as what the Event panel shows. You can find it in the sidebar with this icon: Screenshot 2020-02-05 at 16 28 25

If you'd edit the code manually - you could monitor for every event separately. Here's a list of possible events: https://demo.ui.com/manage/locales/en/eventStrings.json?v=5.12.35

I am thinking about some sort of a filter, as I didn't expect so many of them from my small network. (the phones are constantly connecting/disconnecting).

tborychowski avatar Feb 05 '20 16:02 tborychowski

Interesting. I have it working at home just fine connecting from a docker host to a unifi VM. But at another location, running a CloudKey Gen2+, it connects, but no events are fed over. I do some troubleshooting, but it's strange.

pageb018 avatar Feb 06 '20 19:02 pageb018

Maybe try running it locally (without docker) and add some more logging... (not sure how I could help you 🤔 )

tborychowski avatar Feb 06 '20 20:02 tborychowski

Yes. Just sorta thinking out-loud

Appreciate the great work on this !

On Feb 6, 2020, at 3:39 PM, Tom [email protected] wrote:

Maybe try running it locally (without docker) and add some more logging... (not sure how I could help you 🤔 )

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tborychowski/unifi-event-monitor/issues/1?email_source=notifications&email_token=AGJCHJ5JLY54NQA3VSNSMGDRBRYRPA5CNFSM4KQMVIMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAWNFY#issuecomment-583100055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJCHJ2AD2NDQYKGRDNXPOTRBRYRPANCNFSM4KQMVIMA.

pageb018 avatar Feb 06 '20 21:02 pageb018