UPS and Linux

karnuffel

Executive Member
Joined
Jul 5, 2010
Messages
5,796
Reaction score
2,690
I want to get a UPS for home. I have a PC running Linux Mint 14 (KDE) and a NAS (HP Microserver) running Freenas 8.2 that I want to use it for. I also want to use it for my ADSL line for surge protection (most of the ones Ive looked at has a RJ11/45 jack).

Which UPS will you guys suggest?

I found this for the freenas setup.

Normaly I dont have issues with drivers and linux but I still want to make sure that I will be able to set everything up.

How would I set up my Linux box to use the UPS?
 
I'm monitoring my APC Smart-UPS 1000VA (SUA-1000i model) via USB with Zabbix via my HP Microserver, that is running Ubuntu.
I had to write a script to parse the output of the APC monitoring utility, which then gets sent to my Zabbix server.

The APC software should be available for pretty much any Linux kernel where you can compile stuff. Unfortunately it does not support serial comms. Perhaps the upsd service in Linux can do serial?!
The APC software allow you to specify the amount of time/battery capacity left before it should shut down, etc. Unfortunately all of the configuration is done in a config file and not via a GUI.

I bought my UPS for like R3.3k about 2 years ago and it powers my gaming PC (which draws up to 550W), Dell 30" IPS (~100W), HP Microserver (with 4x LP 2TB HDD's), routers and Corsair SP2500 2.1 speakers.

For just the HP Microserver, you won't need such an expensive/strong UPS.
 
Last edited:
Hi There,
APC have the best equipment for the home user and small business as well.
Linux setup I am not good at but Pada has posted here before on UPS interfaces so could be a good resource

Regards

Tim
 
Give Mustek a call to find out who is a dealer nearby

SC420I APC Smart-Ups 420VA UPS(Power/Data-Line protection for Entry-Level Servers & netw. equipment) Website 1270
SC620I APC Smart-Ups 620VA UPS(Power/Data-Line protection for Entry-Level Servers & netw. equipment) Website 1804
SC1000I APC Smart-Ups 1000VA UPS(Power/Data-Line protection for Entry-Level Servers & netw. equipment) Website 3010
SC1500I APC Smart-Ups 1500VA UPS(Power/Data-Line protection for Entry-Level Servers & netw. equipment) Website 3875
SUA750I APC Smart-Ups 750VA UPS Website 2551
SUA1000I APC Smart-Ups 1000VA UPS Website 3544
SUA1500I APC Smart-Ups 1500VA UPS Website 4772
SUA2200I APC Smart-Ups 2200VA UPS Website 7601
SUA3000I APC Smart-Ups 3000VA UPS Website 11316
 
I got a second hand APC SUA1500 for R400 on bidorbuy, and a new battery pack for R1700. My big question, though, is how do you/I inform all the other machines that it is powering to shut down when necessary?

I have a microserver and a PC running from it, with the USB cable connected to the PC (running Ubuntu). At least the PC will shut down cleanly, but I don't know how to propagate the shutdown notice to the microserver.

How do the big enterprise shops do it, where they have network connected UPS's, sending alerts via SNMP traps, etc? Do all the PC's check the UPS directly? Or do they check with a central server? Or does the central server send out events to the PC's?

I'd really like to have the microserver listen for events as well, if possible.
 
I got a second hand APC SUA1500 for R400 on bidorbuy, and a new battery pack for R1700.

Fark that's expensive. I think you got conned.

Was that for the internal batteries or for a external pack to increase the run time?
 
RoganDawes:
Big enterprises have backup generators, so they probably don't care about running out of battery capacity most times...
 
How do the big enterprise shops do it, where they have network connected UPS's, sending alerts via SNMP traps, etc? Do all the PC's check the UPS directly? Or do they check with a central server? Or does the central server send out events to the PC's?

You will have battery rooms (full of truck batteries) in a 48V DC config fed into DC->AC converters which in turn feed 230V AC UPS plugs on the walls etc (plugs have the earth pin at an angle so you can't just plug any old plug into it) so essentially you are running all your kit of batteries the whole time. In a telecoms environment the equipment gets fed directly by the 48V DC supply as all the equipment is DC. All this has redundancy built in as you usually have a A & B feed in case something in the chain fails.

Besides this you will also have massive generators that kick in once the eskom supply fails as you still need power to charge the batteries which will eventually run flat if not charged. Once again you will have redundancy here.

Management of this is via alarms sent to a remote control room.
 
Fark that's expensive. I think you got conned.

Was that for the internal batteries or for a external pack to increase the run time?

Internal battery pack. It's an RBC7, and R1700 was the cheapest I could find anywhere in ZA. e.g. comx is selling them for R2190, , Prophecy at R2149, etc. Even NewEgg in the US charges $159 for them, so they are expensive there as well.

Considering that the whole enchilada goes for more then R3500 new, I think I got a pretty good deal all in all. Better than my ****ty 15-minute 650VA UPS and having to haul out the generator when the lights go off. This thing runs for about 4 hours with the load I have on it.
 
You will have battery rooms (full of truck batteries) in a 48V DC config fed into DC->AC converters which in turn feed 230V AC UPS plugs on the walls etc (plugs have the earth pin at an angle so you can't just plug any old plug into it) so essentially you are running all your kit of batteries the whole time. In a telecoms environment the equipment gets fed directly by the 48V DC supply as all the equipment is DC. All this has redundancy built in as you usually have a A & B feed in case something in the chain fails.

Besides this you will also have massive generators that kick in once the eskom supply fails as you still need power to charge the batteries which will eventually run flat if not charged. Once again you will have redundancy here.

Management of this is via alarms sent to a remote control room.

I was involved in the setting up of the UPS system for the control room at City Power, so I understand how systems with backup gens work. I guess I'm looking for something smaller than that :-)

FWIW, let me share a story of massive fail with you:

Electricity supply in JHB is divided up into 3 islands, based on the 275 kV infeeds from Eskom at Prospect, Fordsburg and Delta (IIRC, this was 15 years ago). If anything happens to those infeeds, the impact is limited to the island that it supplies.

The City Power offices in Booysens (in particular, the control room in the basement) have supply from two separate islands, going through an automatic changeover switch. If anything happens to the supply in one island, the switch will change over to the other supply, and nobody will have to do anything.

The supply then goes to a 16kVA UPS, which supplies 2 8kVA UPSes, which then feeds two independent power buses. Computers in the control room are redundant, with half plugged into one bus/UPS, and the other half plugged into the other UPS.

Of course, if both islands go dark, then there is a diesel generator set up to supply the control room, to ensure that the UPS's don't run down completely.

Every week, Friday morning, the diesel gen is tested. Mains supply is turned off, the UPS's run on battery for a while, the diesel gen is fired up, and everything checked to make sure it is working.

Cue one Friday night, around 11pm, I get a call. Everything has gone dark in the control room!

Come in to find out that the people testing the diesel gen forgot to turn the mains supply on after they completed their tests. The UPS alarm has been going off in the control room for about 15 hours, and the operators had done nothing about it. Eventually all 3 UPSes were drained, and everything shut down hard.

Moral of the story?

Even in the most ridiculously redundant circumstances, when the UPSes say "shut down now", there needs to be a way of communicating that to all of the computers affected.
 
How do the big enterprise shops do it, where they have network connected UPS's, sending alerts via SNMP traps, etc? Do all the PC's check the UPS directly? Or do they check with a central server? Or does the central server send out events to the PC's?

I'd really like to have the microserver listen for events as well, if possible.

APC uses PowerChute network shutdown software. you basically configure it to gracefully shutdown the machine/s after a certain period if power hasn't been restored
 
Last edited:
APC uses PowerChute network shutdown software. you basically configure it to gracefully shutdown the machine/s after a certain period if power hasn't been restored

Hi Hassan,

Is that installed on each desktop/server powered by the UPS? Do you configure it to monitor the UPS directly, or is there a server component required somewhere?

Thanks

Rogan
 
Hmmm, so it seems that apcupsd supports a network mode. So, connect the UPS to one machine via USB, expose the info via the network. Other machines poll the master, and can determine what to do in each case. Not as powerful as PowerChute, to coordinate shutdowns for all affected machines, but probably good enough.
 
Even in the most ridiculously redundant circumstances, when the UPSes say "shut down now", there needs to be a way of communicating that to all of the computers affected.

Well all our sites were managed via SNMP to a central HP OpenView box as the APC UPSs had network management modules installed. From the HP box we could send out alerts to people via email or SMS.
 
Well all our sites were managed via SNMP to a central HP OpenView box as the APC UPSs had network management modules installed. From the HP box we could send out alerts to people via email or SMS.

One assumes you could also shut the machines down remotely, if required? i.e. when people are away from their machines. Sorry for any open documents, of course.
 
Yes should be possible. One way is via some remote control of the destop or somthing as simple as shutdown -m \\computername
The other method would be via a 'magic' packet on the LAN targeting a specific MAC address.

There are tools out there to do this.
 
Top
Sign up to the MyBroadband newsletter
X