Changes

From Amahi Wiki
Jump to: navigation, search
46 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..
'''NOTE:''' The Amahi Web Application First, do this as [[httpOpen_Terminal_as_root|root user]]://www.amahi.org/apps/ups-monitor UPS Monitor] provides web monitoring capability..
sudo apt-get -y install nut nut-client nut-cgi
FirstNext, do this as [[Open_Terminal_as_root|root user]]you will need to configure four files in /etc/nut:{{Code|Code=sudo apt-get -y install nut nut-client}}.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):
Next, you will need to configure four files in /etc/nut: 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=<pre>
[apc]
driver = usbhid-ups
port = auto
desc = "APC Back-UPS"
}}  {{Code|Code=sudo vi </etc/nut/upsd.users}}pre>
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  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