Page 1 of 2

UPS support in Amahi 8 / Fedora 21?

Posted: Sun Mar 06, 2016 2:08 pm
by luco
I was about to buy the CyberPower CP1000PFCLCD UPS for my HP ML310e Gen8 V2 server running Amahi 8, but then I realized that I should first check whether there's any compatible software to be able to perform automatic server shutdown when the battery gets low.

I cannot find any definite information on this.
Cyberpower page has "Power Panel for Linux: Shutdown software for Linux. Requires Linux kernel >2.6.12".

On Amahi wiki, I can only find references to setup NUT for old versions of Fedora and the apps only show one "UPS Monitor" app that is in alpha stage.

So, is there really no support for UPS in Amahi 8?? That would be very strange given that it should be running servers with data.

Can someone tell me whether the above UPS from Cyberpower can work with Amahi to perform a controlled shutdown?

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Sun Mar 06, 2016 3:36 pm
by bigfoot65
So, is there really no support for UPS in Amahi 8?? That would be very strange given that it should be running servers with data.
This is add-on software and not supported out-of-the-box by Amahi. There are many who don't even use them believe it or not.

I am sure it's possible to use the UPS for programmed shutdown as you mentioned. We currently don't provide that capability, however there are several tutorials on the internet that should work. I use apcupsd on Linux for mine.

Once day we hope to provide an app, but with so many varieties of UPS Backup made it's hard to cover them all.

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Sun Mar 06, 2016 3:42 pm
by luco
Thank you.

Would apcupsd work even for the above Cyberpower unit?

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Sun Mar 06, 2016 3:43 pm
by bigfoot65
It should. I used to have an off brand UPS and it worked.

The shutdown scripts are not always simple, but the guidance should help with that too.

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Mon Mar 07, 2016 5:48 am
by luco
Thank you.
I have ordered the above UPS and I'll report back once it comes in and I get it working.

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Mon Mar 07, 2016 11:05 am
by mcinroy
This is something that interests me, as well.

I took a look at the guide (minding the "update needed" disclaimer), which suggests apcupsd or nut...
I use apcupsd on Linux for mine.
Did you try nut? Just wondering whether your selection was based on experience... and how relevant the guide is.

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Mon Mar 07, 2016 2:02 pm
by bigfoot65
I have used both and preferred apcupsd because it was simple.

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Mon Mar 07, 2016 2:15 pm
by mcinroy
I have used both and preferred apcupsd because it was simple.
I like simple. :)
If/when I give it a try I'll report back (and update the guide, if applicable).

Thanks.

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Mon Mar 07, 2016 2:23 pm
by bigfoot65
Sounds good.

Thanks!

Re: UPS support in Amahi 8 / Fedora 21?

Posted: Thu Mar 10, 2016 8:52 pm
by luco
I have received my UPS, so now I'm trying to learn how to make the shutdown software work on Amahi/Fedora.

I've learned that install using .deb is not readily supported by Fedora. Then I found this site with software packages in .rpm format: http://www.cyberpower-eu.com/products/s ... _linux.htm

Should I just download the "PowerPanel for Linux .rpm 1.3.2 (Linux 64 bit)" package through my Windows client then move it to an HDA share and run the install from there using command line per the installation guide here?

Will this work for Amahi?

What would be my "idiot's guide to UPS install" steps?

1. Shutdown my server.
2. Connect UPS via USB to the server
3. Power on and hopefully Fedora/Amahi picks up the new USB device.
4. Move the .rpm installation file from Windows client to an HDA share.
5. SSH to Amahi, navigate to the dir where the package was moved and execute install from the command line:
rpm -ivh powerpanel-ver-rev-x86_64.rpm
6. Done.

Do I have the steps right?

Thank you.