nut-influxdb-exporter

nut-influxdb-exporter

Docker app from Mihai's Repository

Overview

WARNING: Deprecated in favor of Telegraf which now supports NUT or https://github.com/jwillmer/nut-influxdbv2 Docker wrapper for a Python script to query NUT - Network UPS Tools via a Python script and then send the results to InfluxDB for storage.

nut-influxdb-exporter

:warning: this code is is no longer maintained because Telegraf added NUT support in this PR

However, if you don't use Telegraf I recommend looking at these 2 forks:

If you use Grafana + Unraid, make sure to checkout Unraid System Dashboard New-1577093376607.json. While some graphs might need some tweaking for your particular setup, it's better than nothing.

You can find the docker image here: https://hub.docker.com/r/maihai/nut-influxdb-exporter

Contributions

Please create a PR to develop branch since GitHub actions doesn't offer an easy way to pass secrets to PRs from forks yet.

Install nut-influxdb-exporter on Unraid in a few clicks.

Find nut-influxdb-exporter in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for nut-influxdb-exporter Review the template variables and paths Click Install

Download Statistics

394,499
Total Downloads
430
This Month
416
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Explore more like this

Explore all

Details

Repository
maihai/nut-influxdb-exporter
Last Updated2022-11-13
First Seen2019-09-25

Runtime arguments

Network
bridge
Shell
sh
Privileged
false

Template configuration

HOSTNAMEVariable

host you want the measurements to show up as in InfluxDB

Default
unraid
Value
unraid-ups
WATTSVariable

If your UPS doesn't have the nominal power metric then specify the rated watts so that the load percentage can be used to calculate the current watts

Value
1500
INFLUXDB_HOSTVariable

IP address of influxdb

Default
localhost
Value
127.0.0.1
INFLUXDB_PORTVariable

Container Variable: INFLUXDB_PORT

Default
8086
Value
8086
INFLUXDB_DATABASEVariable

InfluxDB database name to store the values

Default
nut
Value
nut
INFLUXDB_USERVariable

User name for Influxdb

INFLUXDB_PASSWORDVariable

Password for Influxdb

NUT_HOSTVariable

NUT hostname

Default
127.0.0.1
Value
127.0.0.1
NUT_PORTVariable

NUT Port

UPS_NAMEVariable

NUT UPS name

Default
ups
NUT_USERNAMEVariable

Username for NUT

NUT_PASSWORDVariable

Password for NUT

Debugging OutputVariable

Set this variable to true to see the output in the docker log.

Target
VERBOSE
Default
false
Value
false