From 19b2a9298377cbcee9f45eec4052e6a011e1b84d Mon Sep 17 00:00:00 2001 From: dbsqp Date: Sun, 11 Apr 2021 10:55:32 +0200 Subject: [PATCH] Update README.md --- README.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 79b599a..ec3d9e7 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ # 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 Accessories +## 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', ...] @@ -20,17 +18,17 @@ Setup InfluxDBv2, create bucket and create a token with write permissions for bu ``` $ docker run -d \ -e NUT_IP_LIST="['IP1','IP2',...]" \ - -e NUT_HOST_LIST="['','',...]" \ + -e NUT_HOST_LIST="['Host1','Host2',...]" \ -e NUT_PORT="3493" \ - -e NUT_PASSWORD="" \ - -e NUT_USERNAME="" \ + -e NUT_PASSWORD="secret" \ + -e NUT_USERNAME="monuser" \ -e NUT_UPSNAME="ups" \ -e INFLUXDB2_HOST="" \ -e INFLUXDB2_PORT="8086" \ - -e INFLUXDB2_ORG="" \ + -e INFLUXDB2_ORG="Home" \ -e INFLUXDB2_TOKEN="" \ - -e INFLUXDB2_BUCKET="" \ - --name "nut-influxdbv2" \ + -e INFLUXDB2_BUCKET="DEV" \ + --name "Nut-InfluxDBv2" \ dbsqp/nut-influxdbv2:dev ```