done on ubuntu 20.04
wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdb.gpg
export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" > /etc/apt/sources.list.d/influxdb.list
sudo apt-get update && sudo apt-get install influxdb
sudo service influxdb start
sudo apt-get install influxdb-client
influx
CREATE DATABASE ups WITH DURATION 168h
exit
https://www.cyberpowersystems.com/product/software/power-panel-business/powerpanel-business-4-7-0-linux/
wget https://dl4jz3rbrsfum.cloudfront.net/software/ppb470-linux-x86_x64.sh
chmod +x ppb470-linux-x86_x64.sh
sudo ./ppb470-linux-x86_x64.sh
sudo /usr/local/ppbe/ppbed start
Go to {ip_address}:3052 log in with username admin, password admin, and change your password
sudo ufw allow ssh
sudo ufw allow from {grafana_ip}
if you want to allow public access to the dashboard
sudo ufw allow 3052
touch upsmon.sh
chmod +x upsmon.sh
vi upsmon.sh
copy and configure the shell script from the gist
- Add your influx server to your grafana server
- You can take my example dashboard and use it (dashboard.json)
- You need to run the shell script, you can set it up as a service or just run it in console if you're debugging