Sign inSign up

dbsqp/nut-influxdbv2

By dbsqp

•Updated about 3 years ago
Archived

Fetch data from a NUT UPS server and push it to an InfluxDBv2 bucket.

Image
1

2.5K

dbsqp/nut-influxdbv2 repository overview

⁠nut-influxdbv2

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⁠)

⁠Changes

Updated for InfluxDBv2. Changed outputted values. Poll multiple NUT servers.

⁠Roadmap

⁠NUT Servers

  • Get IP address of NUT servers
  • Create list of IPs: ['IP1','IP2', ...]
  • Create list of hostnames (mapped to hosts in Influx): ['Host1','Host2', ...]

⁠InfluxDBv2 Setup

Setup InfluxDBv2, create bucket and create a token with write permissions for bucket.

⁠Docker Setup

$ 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

⁠Debug

To report out further details in the log enable debug:

 -e DEBUG="true"

Tag summary

Content type

Image

Digest

sha256:e0a42cea9…

Size

65.5 MB

Last updated

about 3 years ago

docker pull dbsqp/nut-influxdbv2