Displaying 20 results from an estimated 5000 matches similar to: "Get Nut to Shutdown Computer After a Few Minutes on Battery"
2013 Jun 28
2
How to Simulate UPS on battery?
I've recently moved from installing NUT from source to installing NUT
from the FreeBSD package (FreeBSD 9.1).
One would think that I might have learned not to change anything, but I
made the change. And here is my tale of woe.....
My first question is: is it possible to simulate a "UPS is on battery"
state?
Some background:
UPS comm port is connected to and monitored by
2011 Jul 19
2
KIN-1500AP RM + Windows 2008 64-bit Standard R2 SP1 (nut 2.6.1)
I have only RS-232 on the box (meanwhile, it was manufactured on march of
2011)
Here is my configs:
nut.conf:
*
*
MODE = netserver
ups.conf:
*
*
[KIN1500]
driver = powercom
port = notUsed
desc = "Powercom KING PRO KIN-1500AP RM"
upsd.conf:
*
*
LISTEN 192.168.1.2 3493
upsd.users:
*
*
[monuser]
password = xxxxxxxx
upsmon master
2019 Jul 14
0
New improved version of nut-report script
A couple of different issues with the reporting script. First the password
masking is not working as intended: I have three different passwords in my
ups.users file and only the last one is masked. Here's the first part of
the resulting report where I've replaced the unmasked passwords with
<PASSWORD-n>.
NUT configuration 2019-07-14 16:58:15 UTC
###########
2011 Jun 08
2
Misconfiguration of Windows MSI installer 2.6.0-1 with my Powerware 5115 connected via USB port
Hello.
I've tried to configure Windows (complete port, Beta): Windows MSI installer
2.6.0-1 with my Powerware 5115 connected via USB port but have no luck.
Here is my config files:
*nut.conf:*
MODE = netserver
*ups.conf:*
[PW5115]
driver = bcmxcp_usb
port = notUsed
desc = "PowerWare 5115"
*upsd.conf:*
LISTEN 192.168.1.12 3493
*upsd.users:*
[monuser]
2009 Jun 19
1
UPS does not want to power off itself
Greetings!
I have successfully installed and configured nut package. All i want now
is to power off ups. If i run upsmon -c fsd as root - everything goes
fine, system and ups gracefully shutting down. If i unplug power cable
from an ups, then system is down, but ups still on load. Any help would
be appreciated.
Debian Lenny x86
ups.conf
[ippon]
driver = megatec
port = /dev/ttyS0
2014 Jan 21
0
Shutdown when both (all) UPS on battery / low battery
> What do your configuration files look like? Setting MINSUPPLIES to 2 should work. You can run upsmon with a debug level of 3 or greater, and it will print the current and minimum "power value", which is what determines when to shut down.
>
> Also, if you don't want to wait for both UPSes to drain to the low battery state, you can set up a pair of dummy-ups drivers. I'm
2020 Aug 09
3
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
> Since it's NUT in the NAS which is deciding to order the shutdown, it would be
> useful to see upsmon.conf, upssched.conf and upssched-cmd (or whatever Synology
> use if anything) from the NAS to see what criteria they use.
upsmon.conf (on Synology):
RUN_AS_USER root
MONITOR ups at localhost 1 monuser secret master
MINSUPPLIES 1
SHUTDOWNCMD ""
NOTIFYCMD /usr/sbin/upssched
2019 Jun 08
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
Hi,
I’ve posted my question on Superuser.com but not had any replies in 2 weeks, so I guess no-one there knows anything about NUT.
https://superuser.com/questions/1441153/how-to-shutdown-macos-mac-osx-from-network-ups-tools-client-nut <https://superuser.com/questions/1441153/how-to-shutdown-macos-mac-osx-from-network-ups-tools-client-nut>
I’m looking for help in shutting down my iMac on
2023 Jun 16
1
Dummy-ups cycles between online and onbatt every 5 minutes. (Nut 2.8.0)
Now that upsstats.cgi works, I've noticed that dummy-ups changes state every 5 minutes between OL and OB (probably when the 300 second timer expires). The UPS state stays online.
Also "online" and "onbatt" are broadcast to the console probably via WALL. (The state changes don't seem to be form the ups as upsshed-cmd doesn't run). Upssched-cmd does run when the UPS
2025 Mar 29
1
UPS heartbeat on battery
The problem with computers - they do what you tell them to, not what you
might want them to.
Here your heartbeat.dev literally tells the emulation driver to set
ups.status=OL, wait 300s, set it to OB, wait 300s, repeat.
So NUT reporting that the heartbeat UPS became on-battery 5 minutes after
start means these pieces are doing their job correctly and talking to each
other well.
Jim
On Sat, Mar
2025 Mar 29
1
UPS heartbeat on battery
I'm using nut-2.8.2 on FreeBSD 14.2 with an Eaton 5PX2200RT
Five minutes after starting nut, I get this message within my ssh session:
UPS heartbeat on battery
It is not clear to me why it reports that.
Here is the full output of a restart:
[18:12 gw01 dvl ~] % sudo service nut restart
Stopping nut.
Waiting for PIDS: 2553.
Network UPS
2023 May 27
2
unable to connect to APC UPS Connection Refused
I've not been able to connect to my ups using NUT 2.7.4 or NUT 2.8.0.
2.7.4 was installed as a package, 2.8.O was compiled from source.
I've messed with permissons, everything is root:root and has the approprate read/execute permissons. I've tried two differnt UPS(es) APC & CyperPower. I'm running PI OS (Raspbian) on a Raspberry Pi3 model B. The port 3493 is open (UFW). I can
2023 Jan 12
1
NUT & UPS, how to shut down client after 2 min on battery?
Now I have this in /etc/nut/upsmon.conf (my QNAP NAS wants admin and 123456 or not working)
RUN_AS_USER root
MONITOR qnapups at localhost 1 admin 123456 master
MONITOR qnapups at 192.168.222.252 3493 admin 123456 slave
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG+EXEC
2008 Sep 17
0
FW: Setup of upssched on opensuse 11 - examined pipefn ad lockfm
On 9/16/08 3:35 PM, "Arjen de Korte" <nut+users at de-korte.org> wrote:
> Citeren tarbeite <tarbeite at fit.edu>:
>
>> Running opensuse 11 with two ups that can be seen via web interface and post
>> messages on the console.
>
> Please post the contents of /etc/ups/upssched.conf here. Also make
> sure that the directory mentioned in PIPEFN and
2014 Oct 14
1
upssched not execute triggers - Fedora 20 and nut 2.7.2
ok, this function really worked?
i have a linux Fedora 20 system, i install from rpm in version 2.6.2 and i
this function not execute.
Then i delete the rpm packet and all configuration files and compile latest
stable 2.7.2 version with usb driver.
ok, i first load ups driver:
* /usr/local/ups/sbin/upsdrvctl -u root start*
next i started
*/usr/local/ups/sbin/upsd* and next*
2006 May 16
1
Using upssched under Solaris
Hi, I'm attempting to use the UPS network tools. I'm sure I got the
configurations worked out as I get notified when the ups goes on battery
and back online. I am having problems with upssched. I have the
following in my upssched.conf:
CMDSCRIPT /usr/local/ups/sbin/upssched-cmd
AT ONBATT * EXECUTE onbatt
The problem I have is that is seems like the script in CMDSCRIPT never
gets
2017 Feb 05
2
NUT configuration complicated by Stonith/Fencing cabling
Hello List,
Any suggestions to solve the following would be most appreciated.
Setup: Active/Passive Two Node Cluster. Two UPSes (APC Smart-UPS 1500 C) with USB communication cables cross connected (ie UPS-webserver1 monitored by webserver2, and vice versa) to allow for stonith/fencing
OS OpenSuse Leap 42.2
NUT version 2.7.1-2.41-x86_64
Fencing agent: external/nut
Problem: When power fails to a
2015 Apr 27
0
upssched setup
Hi,
The exec is returning 126 - "Command invoked cannot execute. A
permission or command not executable problem.".
Are you sure that the script is executable by the user running NUT? Do
you have SELinux enabled?
Regards,
Neil.
On 27/04/15 20:55, James Hammond wrote:
> Hi Roger,
>
> I get:
>
> Apr 27 20:50:05 unifi upsmon[1022]: UPS ups on battery
> Apr 27
2013 Mar 08
0
HowTo use upssched right.
Hi,
I want to test the events off my UPS.
I define
In upsmon.conf:
RUN_AS_USER root
NOTIFYCMD /sbin/upssched
NOTIFYMSG ONLINE "UPS %s on line power"
NOTIFYMSG ONBATT "UPS %s on battery"
NOTIFYMSG LOWBATT "UPS %s battery is low"
# NOTIFYMSG FSD "UPS %s: forced shutdown in progress"
NOTIFYMSG COMMOK "Communications with UPS %s established"
2025 Apr 02
0
wrong NOTIFYTYPE always ONBATT on upssched TIMER ?
Hi Jim
ii ?nut ??????????????????????????????????2.7.4-13
??????????????????????????all ?????????network UPS tools - metapackage
ii ?nut-client ???????????????????????????2.7.4-13
??????????????????????????amd64 ???????network UPS tools - clients ii
?nut-server ???????????????????????????2.7.4-13
??????????????????????????amd64 ???????network UPS tools - core system
debian 11 I'am