prometheus-upsc-exporter/upsc_exporter.sh
2019-07-14 15:50:14 +02:00

6 lines
129 B
Bash
Executable file

#!/bin/bash
# default to ups@localhost
UPS_TARGET="${UPS_TARGET:-ups@localhost}"
upsc "$UPS_TARGET" | ./upsc_to_prometheus.awk