Automated NUT Server Install
source link: https://techno-tim.github.io/posts/nut-server-script/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Automated NUT Server Install
Description
Here’s a quick way to automate your battery backups and UPSes with and open source service called NUT server and a raspberry Pi.
NUT Server Install script
Be sure to check out (and star) the repo with an automated NUT server install!
⭐ https://github.com/dzomaya/NUTandRpi
Instructions
Be sure you have a raspberry pi or any machine running Debian / Ubuntu Linux. Then plug in your UPS via USB and then SSH into your Pi.
Then download th script.
wget https://raw.githubusercontent.com/dzomaya/NUTandRpi/main/scripts/nutinstall.sh
Make the script executable.
sudo chmod +x nutinstall.sh
Run the script.
sudo ./nutinstall.sh
Answer a few questions.
Be sure to keep your SNMP community string safe and treat this like a password.
You can now access NUT in a browser by going to:
http://yourRasberryPiIPaddress/cgi-bin/nut/upsstats.cgi
You can also query your device using SNMP
snmpwalk -v2c -c yourSNMPv2cCommunity yourRasberryPiIPaddress .1.3.6.1.4.1.8072.1.3.2.4.1.2
Advanced
To see advanced configuration and configuring NUT Server and NUT client, see my Network UPS Tools (NUT) Ultimate Guide.
Links
⚙️ See all the hardware I recommend at https://l.technotim.live/gear
🚀 Don’t forget to check out the 🚀Launchpad repo with all of the quick start source files
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK