patricegautier / unifiZabbix

Zabbix templates to monitor pretty much all Unifi devices
175 stars 35 forks source link

Monitoring an UDM from WAN side #112

Open IanICTSG opened 6 months ago

IanICTSG commented 6 months ago

How would we go about monitoring an UDM from the WAN side using Zabbix?

lslamp commented 6 months ago

I would use SNMP. or try using the unpoller solution with Grafana and influxDB.

Depends upon what you are trying to monitor.

Lawrence

patricegautier commented 6 months ago

So Zabbix is on the WAN from the UDM's perspective? Any option to create a site to site VPN? That is what I do everywhere..

IanICTSG commented 6 months ago

I would use SNMP. or try using the unpoller solution with Grafana and influxDB.

Depends upon what you are trying to monitor.

Lawrence

Unifi doesnt really have snmp, you can install it on the UDMs but theres a chance an update will break the setup.

We would like to monitor the UDM itself, WAN port(s) uptime, status, updates etc. It is available in the Unifi API but we cant reach the API from public…

IanICTSG commented 6 months ago

So Zabbix is on the WAN from the UDM's perspective? Any option to create a site to site VPN? That is what I do everywhere..

Zabbix is hosted elsewhere (Azure).

Could work, but we have too many in the field, we also wouldn’t want to chain all out clients together if that makes sense, so we thought doing it over WAN with conditional access policies (port forwarding to single public IP).

Unifi does have an API it can work with, but havent been able to reach it from public, only from internally.

lslamp commented 6 months ago

@IanICTSG Take a look at https://github.com/unpoller/unpoller This worked very well for me. What I do not like about the unifi dashboard is the fact that all the graphs are so static. If you use the unpoller and grafana then the whole game changes. It is incredible. Below is my UXG view image Lawrence

IanICTSG commented 6 months ago

@IanICTSG Take a look at https://github.com/unpoller/unpoller This worked very well for me. What I do not like about the unifi dashboard is the fact that all the graphs are so static. If you use the unpoller and grafana then the whole game changes. It is incredible. Below is my UXG view image Lawrence

Yea UnPoller looks great, but the boss wants to have multiple platforms monitored in one dashboard IE Mikrotik, Fortigate and in this case Unifi. Right now they are monitored with a simple ping, Not sure if Grafana supports SNMP monitoring, Fortigate API and simple ICMPs besides the UDM API shown here. I do have an Unifi controller that I could monitor with the Unifi API in Zabbix, but its just the UDMs that I cant monitor.

patricegautier commented 6 months ago

so if you can get to a controller from the outside, you can also get to the UDM's self hosted controller no? should work the same..