WORK IN PROGRESS

Docker Dockerfile

Purpose

Dockerfile to create a telegraf snmp listener for a Unifi AP.


Execution

    docker run \
    -e INFLUX_DATABASE_HOSTNAME="192.168.1.1" \
    -e INFLUX_DATABASE_NAME="TELEGRAF" \
    -e INFLUX_DATABASE_USER="USER" \
    -e INFLUX_DATABASE_PASS="PASSWORD" \
    -e SNMP_COMM_STRING="PUBLIC" \
    -e UNIFI_AP_HOSTNAME="AP1, AP2" \
    -dt drewgwallace/telegraf_unifi

Build yourself with docker compose

    git clone https://github.com/drewgwallace/docker-dockerfile-telegraf_unifi.git
    cd docker-dockerfile-telegraf_unifi
    docker build -t USERNAME/telegraf_unifi .
    docker push USERNAME/telegraf_unifi

Image on Docker Hub


Notes