Skip to content

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).

License

Notifications You must be signed in to change notification settings

CreepPork/python-influxdb-ups-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-influxdb-ups-monitor

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.

Installation

git clone https://github.com/CreepPork/python-influxdb-ups-monitor
pip3 install -r requirements.txt

Usage

  1. Edit the ups-monitor.py file to add your own services to monitor and return their values
  2. Configure your telegraf.conf (see example here)
  3. It will create a metric called upses, use this in your Grafana dashboard
  4. Ready!

Example Telegraf configuration

[[inputs.exec]]
  commands = [
    '/usr/bin/python3 /etc/telegraf/inputs/ups-monitor.py'
  ]
  interval="30s"
  timeout="30s"
  data_format="influx"

Security

If you discover any security related issues, please e-mail security@garkaklis.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

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).

Topics

Resources

License

Stars

Watchers

Forks

Languages