On 30/11/12 15:28, Mark Rogers wrote:
On 30/11/12 12:48, steve-ALUG@hst.me.uk wrote:
I suggest you install apcupsd
Done and now working, thanks for your pointers. Looks like I have about an hour of battery runtime supplying this server and the USB caddy, using the old batteries. That's a bit more than I was expecting! I do have another box I'd like to put through it but even then 30mins backup is plenty of time to ride out a short power cut and still shut down before the power fails.
I also use gapcmon to monitor the UPS and tell me of any power events. apcupsd can also drive a web-based power monitoring page if you prefer.
I can't find gacpmon - gacpmon.sourceforge.net no longer resolves. Is it still maintained?
For now I'm happy with "apcaccess status" to get my UPS status, but running a GUI on my desktop wouldn't be a terrible idea.
Mark
http://gapcmon.sourceforge.net works for me, as does http://sourceforge.net/projects/gapcmon/
Last new version was in 2008 though. It's a gnome tray app though - dunno if it'll work in Ubuntu Unity or KDE.
Suggest that one day, when you're feeling brave, switch the power off at the mains and see if the machine shuts down gracefully as expected. Also check it comes back on when the power is re-connected.
If you have a webserver running somewhere on your network, you can monitor the UPS via that (even if the ups is on a different machine to the webserver)
Having a quick look, there seems to be a new app called NUT Monitor, which may work better for you. Suggest you just open a package manager and type in UPS and see what comes up! :-)
If you're running two machines off one machine, then I suggest that you install apcupsd on both and configure as listed below, so that both shutdown gracefully http://www.apcupsd.com/manual/manual.html#nis-server-client-configuration-us...
Checking the documentation, it suggest batteries should last 2 years - I guess I've been buying cheap ones that don't last so long!
Cheers Steve