Questions tagged [ups]

Uninterruptible power supply

A UPS (Uninterruptible Power Supply or Uninterruptible Power Source) is a power supply with a battery back-up in case the mains power fails. Most UPS can send a signal over a serial or USB line to tell a computer to shut down cleanly before the battery runs out.

34 questions
11
votes
1 answer

Is it safe to boot computer that lost power while suspending to disk?

I have computer with battery power supply that allows running the computer for approximately one minute after power loss. I want to trigger suspend-to-disk immediately after power loss so it can be resumed later. The initrd (default Devuan initrd)…
jiwopene
  • 1,002
  • 7
  • 19
8
votes
2 answers

Make system robust against unexpected power loss

Are there any common or standard ways to make a system more robust against unexpected power loss (I.e., without proper shutdown)? I was using a UPS but the battery is dying and I haven't had a chance to replace it yet. During the last power loss…
brianmearns
  • 654
  • 1
  • 8
  • 16
7
votes
2 answers

Apcupsd on Debian stretch 9 no connection to UPS?

I'm trying to get apcupsd to work with my Ups (APC Back-UPS 700VA) with my server running Debian 9 stretch but can't connect to ups and get this when I run: rene@odroidxu4-share:~$ sudo apcaccess status [sudo] password for rene: APC :…
Rene Mortensen
  • 105
  • 1
  • 6
6
votes
2 answers

Does anything USE /dev/initctl or /run/initctl

I have been investigating code for a UPS for a Raspberry Pi that is using sysv init rather than systemd (personal preference and familiarity). I was looking into how a privileged script - possibly part of or run from /etc/rc.local - would tell init…
SlySven
  • 517
  • 4
  • 16
6
votes
2 answers

Run various shell commands when NUT reports a low UPS battery

On a Debian server I've successfully installed the nut package so that my Ellipse PRO 1200 UPS's status can be fetched via USB (upsc my-ups returns battery level). Note: I haven't tested what will happens when a power outage occurs yet. This UPS…
CDuv
  • 362
  • 2
  • 5
  • 12
4
votes
0 answers

NUT upsrw ERR READONLY

I am using NUT to shutdown the ups powering my CentOS 6 server but it has a 30 second delay when executing the shutdown. When I run upsc I can see that the 30 seconds is controlled by the variable ups.delay.shutdown: 30 However when I try to…
TheLovelySausage
  • 4,183
  • 9
  • 30
  • 49
4
votes
2 answers

Detect power loss

Is it possible to detect loss of power on a laptop/desktop without an UPS? Obviously a computer without an UPS will shutdown at least almost immediately after being unplugged/having its battery pulled. However, I thought maybe that the kernel could…
Alec
  • 163
  • 1
  • 6
4
votes
1 answer

Is it possible to expose a USB UPS via SNMPD?

I have a Rack Mount Cyberpower UPS I'd like to be able to monitor with LibreNMS. It only connects via USB. Is it possible to have the Ubuntu Server running SNMPD expose the UPS MIBs?
Jonathan S. Fisher
  • 200
  • 1
  • 2
  • 13
4
votes
0 answers

How to simulate power outage for a single NUT client?

I've changed the behaviour of a single server (configured as netclient) when on UPS, but I'm not sure how to test it in isolation. dummy-ups seems related, but even the configuration looks completely different from the nut.conf I have inherited.…
l0b0
  • 50,672
  • 41
  • 197
  • 360
4
votes
0 answers

How to get notification from upower when UPS is on battery

I have a Fedora Core 19 system powered via a desk-side UPS. I've connected the UPS' USP port to the FC19 system, and it was apparently recognized, as upower -d now reports its presence: ups present: yes state: …
TomG
  • 249
  • 1
  • 6
2
votes
1 answer

Setup NUT power failure notifications when running computer on UPS battery

Description of the problem I have UPS Orvaldi KC2000 (its capacity: 2000VA/1400W) and I want to setup configuration of my Debian 10 (Buster which is currently testing) to: get GUI (preferably GNOME) notifications when there is power failure and my…
patryk.beza
  • 1,179
  • 1
  • 13
  • 25
2
votes
0 answers

Configure UPower to recognize PowerWare 9130 UPS (Ubuntu Xenial)

I just installed Ubuntu Xenial Desktop (16.04.1) on my HP ProDesk 600 G2 and there is a red (empty) battery icon at the upper right. The PC is plugged into a UPS which I know works (Powerware 9130) and it is fully charged. upower --enumerate…
2
votes
4 answers

String Manipulation Shell Script

I am working on a UPS Monitoring project using NUT Server. My objective is to make a shell script which sends one command and in response receives the status and other parameters from the UPS. for example #!/bin/bash status='upsc myups' # command…
Kunal Sonone
  • 65
  • 1
  • 9
2
votes
1 answer

How to configure apcupsd to leave UPS running after server shutdown?

My server that runs apcupsd is the largest load on my UPS, and whenever the power goes out I want to have the server shutdown and leave the UPS to run until the UPS shuts itself down on low battery voltage. (Note that this will not harm any of the…
Paul
  • 497
  • 6
  • 21
1
vote
0 answers

How to prevent apctest from shutting down the UPS immediately when performing a battery calibration?

I am running an APC SMT1500RMI2U connected to a Linux server via serial cable. On the Linux server, the UPS is managed by apcupsd and the associated utilities. apcupsd communicates with the UPS using the MODBUS protocol. From time to time, I'd like…
Binarus
  • 3,160
  • 1
  • 15
  • 31
1
2 3