Fetch data from a NUT UPS server and push it to an InfluxDBv2 bucket.
2.5K
This is a docker container that pulls data from a NUT server and pushed to InfluxDB. Based on work of mihai-cindea [https://github.com/mihai-cindea/nut-influxdb-exporter)
Updated for InfluxDBv2. Changed outputted values. Poll multiple NUT servers.
Setup InfluxDBv2, create bucket and create a token with write permissions for bucket.
$ docker run -d \
-e NUT_IP_LIST="['IP1','IP2',...]" \
-e NUT_HOST_LIST="['Host1','Host2',...]" \
-e NUT_PORT="3493" \
-e NUT_PASSWORD="secret" \
-e NUT_USERNAME="monuser" \
-e NUT_UPSNAME="ups" \
-e INFLUXDB2_HOST="<INFLUXDBv2 SERVER>" \
-e INFLUXDB2_PORT="8086" \
-e INFLUXDB2_ORG="Home" \
-e INFLUXDB2_TOKEN="" \
-e INFLUXDB2_BUCKET="DEV" \
--name "Nut-InfluxDBv2" \
dbsqp/nut-influxdbv2:dev
To report out further details in the log enable debug:
-e DEBUG="true"
Content type
Image
Digest
sha256:e0a42cea9…
Size
65.5 MB
Last updated
about 3 years ago
docker pull dbsqp/nut-influxdbv2