Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:home_server_setup:other_services:nut [2022-08-27 Sat wk34 07:04] – baumkp | home_server:home_server_setup:other_services:nut [2023-05-13 Sat wk19 10:20] (current) – [NUT (Network UPS Tools) Setup] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
======NUT (Network UPS Tools) Setup====== | ======NUT (Network UPS Tools) Setup====== | ||
+ | I purchased my current main UPS the Powershield Commander RT PSCRT1100 / Voltronic Power Otima II 1.1K in 2014 and setup NUT about this time, including early conversion to systemd scripts. | ||
- | NUT is an open source network monitoring and control system. I use a Powershield Commander RT PSCRT1100 a 1100VA/ | + | By the way a couple years ago the UPS battery fail alarm went off. It would seem the UPS batteries failed after about 5-6 years of operation. |
+ | |||
+ | NUT is an open source network monitoring and control system. I use a Powershield Commander RT PSCRT1100 a 1100VA/ | ||
It turns out the '' | It turns out the '' | ||
Line 204: | Line 207: | ||
*List all the UPS device profile variable ''/ | *List all the UPS device profile variable ''/ | ||
- | *A script file to succinctly log the UPS data, using cron to run script every 10 minutes '' | + | *A script file to succinctly log the UPS data, using cron to run script every 10 minutes '' |
# Logging output for NUT UPS Monitor output | # Logging output for NUT UPS Monitor output | ||
Line 228: | Line 231: | ||
printf(" | printf(" | ||
</ | </ | ||
- | *A script file to rotate a log file out to a dated gzip log file, with a new empty log file, the log file with path is the script input '' | + | *A script file to rotate a log file out to a dated gzip log file, with a new empty log file, the log file with path is the script input '' |
#!/bin/bash | #!/bin/bash | ||
logfile=$1 | logfile=$1 | ||
Line 244: | Line 247: | ||
*To list the available UPS commands: " | *To list the available UPS commands: " | ||
*Some other scripts: | *Some other scripts: | ||
- | *To email notifications from nut: nut-notify.sh (not tested)< | + | *To email notifications from nut: nut-notify.sh (not tested)< |
#!/bin/sh | #!/bin/sh | ||
#echo " | #echo " | ||
Line 271: | Line 274: | ||
</ | </ | ||
- | Example to disable the UPS beeper: '' | + | Example to disable the UPS beeper: '' |
The command will prompt for a user then password. | The command will prompt for a user then password. | ||
+ | |||
< | < | ||
T | T |