mirror of
https://github.com/PoetryInCode/system-reporting.git
synced 2025-04-19 10:47:14 -04:00
This is a system daemon for my home network that will report system stats to my influxdb instance.
9 lines
268 B
Bash
Executable File
9 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
INFLUX_HOST=${INFLUX_HOST:-"http://192.168.1.83:8086/write?db=metrics"}
|
|
HOST=$(hostname)
|
|
|
|
go build -ldflags "-X solow.xyz/system-reporting/config.Device=${HOST} -X solow.xyz/system-reporting/config.InfluxHost=${INFLUX_HOST}" ./system-reporting.go
|