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 [2020-12-20 Sun wk51 09:58] – [NUT Key commands and scripts] 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 146: | Line 149: | ||
Turn off the existing legacy scripts and systemd handlers, as noted above; '' | Turn off the existing legacy scripts and systemd handlers, as noted above; '' | ||
- | The Kepstin blog gives a good NUT and Systemd discussion [[https:// | + | The Kepstin blog gives a good NUT and Systemd discussion [[https:// |
First we need to get the NUT driver running, "sudo vim / | First we need to get the NUT driver running, "sudo vim / | ||
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 | + | |
- | | + | < |
- | | + | |
- | | + | e L V |
- | U+00B0 | + | m o o h r u i |
- | c | + | p a l a g n m |
- | YYYY-MM-DD HH: | + | |
- | 2020-12-01 00: | + | |
+ | YYYY-MM-DD | ||
+ | 2020-12-01 | ||
+ | </ | ||
+ | Some known Status Code: | ||
+ | * OL = On Line (running from main power supply, no adjustments) | ||
+ | * OB = On Battery | ||
+ | * ALARM OL RB = Alarm, On Line, Replace Battery | ||
+ | * OL CAL = On Line Calibrating | ||
====The following is a list of related commonly used commands and scripts: | ====The following is a list of related commonly used commands and scripts: | ||
Line 292: | Line 304: | ||
---- | ---- | ||
- | <- home_server: | + | <- home_server: |