https://github.com/albinodrought/nut-forwarder-influxdb
Forward some of your Network UPS Tools (NUT) data to InfluxDB
https://github.com/albinodrought/nut-forwarder-influxdb
golang influxdb nut ups
Last synced: about 2 months ago
JSON representation
Forward some of your Network UPS Tools (NUT) data to InfluxDB
- Host: GitHub
- URL: https://github.com/albinodrought/nut-forwarder-influxdb
- Owner: AlbinoDrought
- License: agpl-3.0
- Created: 2019-10-29T04:52:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T04:52:25.000Z (over 5 years ago)
- Last Synced: 2025-02-07T02:46:32.794Z (3 months ago)
- Topics: golang, influxdb, nut, ups
- Language: Go
- Size: 14.6 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NUT Forwarder for InfluxDB
Forward some of your [Network UPS Tools (NUT)](https://networkupstools.org/index.html) data to InfluxDB. I built this for home use with my [CyberPower `CP1500AVRLCD`](https://networkupstools.org/ddl/Cyber_Power_Systems/CP1500AVRLCD.html), YMMV
## Running
```
INFLUX_SERVER=http://localhost:8086 \
NUT_HOST=localhost \
./nut-forwarder-influxdb
```- `INFLUX_SERVER`: URL to InfluxDB server including scheme and port, defaults to `http://localhost:8086`
- `INFLUX_DATABASE`: Database to save data to, defaults to `ups`
- `INFLUX_USERNAME`: InfluxDB username, defaults to empty (no auth)
- `INFLUX_PASSWORD`: InfluxDB password, defaults to empty (no auth)
- `NUT_HOST`: hostname or IP address of your NUT server, defaults to `localhost`
- `NUT_USERNAME`: NUT username, defaults to empty (no auth)
- `NUT_PASSWORD`: NUT password, defaults to empty (no auth)
## Building
### Without Docker
```
go get -d -v
go build
```### With Docker
`docker build -t albinodrought/nut-forwarder-influxdb .`