A simple Python script that allows for you to monitor your PowerWalker UPS (connected via serial) by returning various parameters that are fed into InfluxDB (Telegraf). It will also shutdown all ESXi VMs using vCenter.
git clone https://github.com/CreepPork/python-influxdb-ups-monitor
pip3 install -r requirements.txt
- Edit the
ups-monitor.py
file to add your own services to monitor and return their values - Configure your
telegraf.conf
(see example here) - It will create a metric called
upses
, use this in your Grafana dashboard - Ready!
[[inputs.exec]]
commands = [
'/usr/bin/python3 /etc/telegraf/inputs/ups-monitor.py'
]
interval="30s"
timeout="30s"
data_format="influx"
If you discover any security related issues, please e-mail [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.