Changes

From Amahi Wiki
Jump to: navigation, search
139 bytes removed ,  03:29, 23 June 2020
no edit summary
Adapted from the original instructions that this guidance is based on came from [http://www.mscs.dal.ca/~selinger/ups/backups.html here] and [http://billauer.co.il/blog/2010/01/fedora-mustek-powermust-600-ups-nut-howto/ here]. The former, by Peter Selinger, are closest to this case, but a lot of the work he had to do is now done for you out of the box. The latter are for a different UPS, but are also fresher.
 
'''NOTE:''' The Amahi Web Application [http://www.amahi.org/apps/ups-monitor UPS Monitor] provides web monitoring capability..
First, do this as [[Open_Terminal_as_root|root user]]:
First, do this as [[Open_Terminal_as_root|root user]]:{{Code|Code= sudo apt-get -y install nut nut-client nut-cgi}}
Next, you will need to configure four files in /etc/nut: nut.conf, ups.conf, upsd.users, hosts.conf, and upsmon.conf. They will look almost identical to Selinger's (password1 and password2 can be changed to anything):
{{Code|Code=
sudo vi /etc/nut/ups.conf
}}
{{Text|Text= sudo vi /etc/nut/ups.conf <pre>
[apc]
driver = usbhid-ups
port = auto
desc = "APC Back-UPS"
}}</pre>
sudo vi /etc/nut/upsd.users
{{Code|Code=sudo vi /etc/nut/upsd.users}}  {{Text|Text=<pre>
[admin]
password = password1
password = password2
upsmon master
}}</pre>
sudo vi /etc/nut/hosts.conf
{{Code|Code=sudo vi /etc/nut/hosts.conf}} MONITOR apc@localhost "UPS on HDA"
{{Text|Text=
MONITOR apc@localhost "UPS on HDA"
}}
'''NOTE:''' If using [http://www.amahi.org/apps/ups-monitor UPS Monitor], skip the hosts.conf portion or you will end up with double entries.
{{Code|Code= sudo vi /etc/nut/upsmon.conf}}
{{Text|Text=<pre>
MONITOR apc@localhost 1 monuser password2 master
MINSUPPLIES 1
NOCOMMWARNTIME 300
FINALDELAY 5
}}</pre>  sudo vi /etc/nut/nut.conf
{{Code|Code MODE=sudo vi /etc/nut/nut.conf}}standalone
{{Text|Text=
MODE=standalone
}}
The next step is to start the UPS service:
{{Code|
sudo service ups-monitor stop
sudo service ups-monitor start
}}
sudo service ups-monitor stop
sudo service ups-monitor start
At this point, you should see something like this in your terminal:
12,424

edits