Unifi-Poller -> InfluxDB

ragman1976

Member
Mar 5, 2021
36
2
13
48
Hallo,

ich bin gerade dabei meine RaspberryPis bzw. deren Dienst auf einem Server (Intel NUC) zu zentralisieren. Proxmox ist daher noch komplett neu und auch mit Linux bin ich nur sehr grundätzlich vertraut.

Auf einem der Raspi habe ich Docker laufen, mit dem ich mit div. Containern (InflixDB, Unifi-Poller, Grafana) das Monitiring für die Unifi Umgebung mache.

Genau dieses Setup versuche ich gerade auf einen LCX-Container zu übertragen. Als Grundlage dient ein Ubuntu 20.04

InfluxDB habe ich bereits installiert und schein auch ordnungsgemäß zu laufen:

Code:
root@monitoring:~# influxd

 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"

2021-03-09T12:00:11.356305Z     info    InfluxDB starting       {"log_id": "0Smia2N0000", "version": "1.8.4", "branch": "1.8", "commit": "bc8ec4384eed25436d31045f974bf39f3310fa3c"}
2021-03-09T12:00:11.356318Z     info    Go runtime      {"log_id": "0Smia2N0000", "version": "go1.13.8", "maxprocs": 1}
run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use
root@monitoring:~#

Eine Datenbank Namens "unifi" ist auch eingerichtet:

Code:
show databases
name: databases
name
----
_internal
unifi
>

Unifi-Poller ist nach folgender Anleitung installiert:

https://github.com/unifi-poller/unifi-poller/wiki/Installation

und die Config datei entsprechnen angepassst:

Code:
[influxdb]
  disable = false
  # InfluxDB does not require auth by default, so the user/password are probably unimportant.
  url  = "192.168.10.62:8086"
  user = ""
  pass = ""
  # Be sure to create this database.
  db = "unifi"
  # If your InfluxDB uses a valid SSL cert, set this to true.
  verify_ssl = false
  # The UniFi Controller only updates traffic stats about every 30 seconds.
  # Setting this to something lower may lead to "zeros" in your data.
  # If you're getting zeros now, set this to "1m"
  interval = "30s"

#### INPUTS

[unifi]
  # Setting this to true and providing default credentials allows you to skip
  # configuring controllers in this config file. Instead you configure them in
  # your prometheus.yml config. Prometheus then sends the controller URL to
  # unifi-poller when it performs the scrape. This is useful if you have many,
  # or changing controllers. Most people can leave this off. See wiki for more.
  dynamic = false

# The following section contains the default credentials/configuration for any
# dynamic controller (see above section), or the primary controller if you do not
# provide one and dynamic is disabled. In other words, you can just add your
# controller here and delete the following section. The internal defaults are
# shown below. Any missing values will assume these displayed defaults.
[unifi.defaults]
  url        = "https://192.168.xxx.xxx"
  user       = "xxx"
  pass       = "xxx"
  sites      = ["all"]
  save_ids   = false
  save_dpi   = false
  save_sites = true
  hash_pii   = false
  verify_ssl = false

# The following is optional and used for configurations with multiple controllers.

IP LCX-Container = 192.168.10.62

Soweit ist erstmal alles alles installiert. Allerdings scheint die InfluxDB allerdings nicht mit Werten gefüttern zu werden, zumindest bekomme ich in Gefana keine Werte angezeigt.
Leider kenne ich die Befehle nicht wie ich herausfinden kann ob überhaupt Werte in die Datenbank geschrieben werden. Kann mir jemand sagen wie ich das prüfen kann, bzw. findet schon auf den ersten Blick einen Fehler in der Konfiguration?

Gruß und Danke.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!