this post was submitted on 03 Oct 2023
49 points (100.0% liked)

Linux

48090 readers
782 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Looking for opinions.

top 23 comments
sorted by: hot top controversial new old
[–] [email protected] 42 points 1 year ago* (last edited 1 year ago) (4 children)

Was unaware UPSes even talked to the computers they power, thought they were just backup batteries

[–] [email protected] 47 points 1 year ago (1 children)

They can connect via USB so you can do things like perform a clean shutdown when it loses power

[–] [email protected] 8 points 1 year ago (1 children)

Don't forget rs232 and Ethernet! 😁

[–] [email protected] 3 points 1 year ago (1 children)

I'm picking a brand for a service offering HaaS. And am hoping I can find a brand that has central management.

[–] [email protected] 3 points 1 year ago (2 children)

All the modern enterprise ones will support network management, but the thing to keep in mind is a UPS is essentially an insurance policy - you've got to keep up with the premiums (maintenance, replacing the batteries as they age out, testing, ...) if you want to be able to trust that they'll work on the one day a year that you need them.

Related anecdote - I know of a company that spent several million dollars installing a backup diesel generator in their secondary DC. Several years later, a new CIO came in and decided that they should actually be practicing the DR plans that they had in place, and one of those plans involved shifting all their load off DC A onto DC B, then switching DC A onto backup power for half an hour or so. Test day came and they managed to switch the load over with minimal issues, then they switched the power over to backup and... nothing. UPS batteries were several years out of life and lasted less than a minute, and the generator failed to start because it had never been maintained - turns out fuel goes bad if you leave it sitting in a tank in the sun for years, and trying to start a large engine with no lubricant really messes stuff up. Cost them mid-6-figures to get the generator torn down and rebuilt - manufacturer laughed them out of the room when they tried to claim warranty. Don't know if they tried to start the generator at the primary DC, but I suspect some bricks were shat thinking about how far in breach of contract they could be with some of their clients

[–] [email protected] 1 points 1 year ago

Oh wow, good thing they caught that.

[–] [email protected] 1 points 1 year ago (1 children)

Hey, is there any centralized system I can put on a Linux box that will notify me of battery health of multiple UPSs.

I started a managed Services business and I'm trying to find a battery backup solution. That I can centrally manage.

I've never looked into Central management for UPS's before. So I'm not sure if there's anything out there like that.

Given your experience though I'm guessing you might know.

I'm just trying to avoid running into the situation where I have a dying battery at a client's location. I'm trying to be proactive.

[–] [email protected] 2 points 1 year ago

Most of my experience comes from being a developer who enjoys drinking beer with operations people cos I get to hear all the gnarly stories :D

From what I understand, UPSs tend to fall into one of two categories; small consumer desk mount boxes that are enough to keep a single modest workstation going for ~an hour, and larger enterprise grade rack mount systems.

  • The consumer grade ones tend not to have network management built in, but through something like NUT you can check the status and get alerts about power/battery health etc
  • The enterprise grade ones typically have network management, usually in the form of a control module that exposes a web interface and SNMP for monitoring - they are typically not very secure, and usually rely on being on a separate management network that requires VPN access or something

I am by no means an expert, but it sounds like you are planning on deploying machines at remote sites, and want to include a UPS as part of that package - I'd assume that you already have some infrastructure in place for monitoring these machines remotely, so I'd suggest leveraging that to monitor a UPS connected over USB as well

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago)

Yep even mid range ones did so way back in the early 90s. It was a common fairly cheap feature that used rs232 mostly. In those days non unix systems did not care as much if powered down without warning. So us early (me 1996) Linux users really found it useful to have the ups initiate shutdown before it died. Windows users of the time only tended to worry if they had the PC running when not sat their. Few had internet at home in the early 90s and those that did were dil up. So for many it was not worth the cost when you could just turn off the PC if a power cut was long term.

Now with most people using laptops for casual use. I really cant imagin anyone buying one without the feature.

[–] [email protected] 5 points 1 year ago

If the computer gets notified that the battery has been activated, then it can save files, gracefully exit programs, etc. before power loss

[–] [email protected] 3 points 1 year ago

It's possible for them to tell the computer to shutdown when the battery is getting low

[–] [email protected] 25 points 1 year ago (2 children)

My cyberpower UPS works well. There's a service you can run to shut your computer down or whatever when it goes to battery power (check arch wiki) but it also works with GNOME (its displayed how a laptop battery would be displayed, but its labeled as a UPS) and it works well with NUT too.

[–] [email protected] 4 points 1 year ago (1 children)

I have 3 cyber power UPSs on my network and I haven't had any issues with them. The web interface isn't the best but it does it job

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

There's also a linux command line interface for at least business class cyberpower UPSs. (Not sure on consumer end.)

Worked like a charm for me on a headless machine.

[–] [email protected] 4 points 1 year ago

Their PowerPanel Personal and Business editions both seem to work with all of their UPS models. I used to run PowerPanel Business on a basic tower-style model.

https://www.cyberpowersystems.com/products/software/

[–] [email protected] 4 points 1 year ago

I was happy with my cyber powers for years, but then the batteries died (official replacement batteries, after 3 years - the originals lasted 5) and the ups just stopped even passing power through. This is someone's old blog about this https://blog.networkprofile.org/cyberpower-ups-avoid/

[–] [email protected] 15 points 1 year ago (1 children)

Just get one that is supported by N.U.T and have N.U.T handle your shutdowns.

[–] [email protected] 10 points 1 year ago

...and what better brand than EATON, which sponsors the NUT project IIRC.

[–] [email protected] 11 points 1 year ago (1 children)

Using NUTS, about every one of them, I'm using APC and TrippLite

[–] [email protected] 4 points 1 year ago (1 children)

Agreed; I have two Cyberpowers that NUTS works well with. That said, I hate configuring NUTS. It's like the sendmail of power supply management systems. I'm not aware of any others, though, so it's what there is.

Oh, and Home Assistant plays really well with NUTS!

[–] [email protected] 4 points 1 year ago

I agree, configuration is text files like good old sendmail, what a nightmare memory, IIRC there was even books about configuring sendmail...

Anyway NUTS works well, at one time I even installed it on my ASUS router and set it as a IP server, and from a windows PC using winNUT I was able to see it.

[–] [email protected] 11 points 1 year ago

I've used both APC (via apcupsd) and EATON (via nut), both work great.

[–] [email protected] 5 points 1 year ago

I have good expreience with APC and Legrand. Small chinese noname brands are a hit or miss, but mostly miss.

Check the nut compatibility list: https://networkupstools.org/stable-hcl.html