Displaying 20 results from an estimated 187 matches for "powerdownflag".
2006 Sep 13
2
POWERDOWNFLAG (/etc/killpower) does not contain the upsmon magic string!!!
Hi to all, i install nut and it's work perfectly but when i start upsmon i recive the message:
POWERDOWNFLAG (/etc/killpower) does not contain the upsmon magic string
My upmon.conf contain:
MONITOR myups@theseo 1 orion91 carlos81 master
SHUTDOWNCMD "/sbin/shutdown -h +0"
HOSTSYNC 15
POWERDOWNFLAG /etc/killpower
FINALDELAY 5
My killpower scrit in /etc/killpower contain:...
2012 Nov 28
1
upsmon.conf::POWERDOWNFLAG
?Hello everybody,
I've just noticed that POWERDOWNFLAG defaults to
/etc/killpower in upsmon.conf.
I believe that such files belong to the /run sub-tree.
Not only because it's not a config. file; mainly because
many embedded systems actually have most of the FS
read-only and have only the /tmp, /var and /run
writable...
Is there any particular rea...
2005 Oct 18
0
POWERDOWNFLAG Confusion..
Greetings..
Maybe someone could clear up a small confusion or uncertainty...
Reading the various files I got the first impression that the file
(??) that holds POWERDOWNFLAG variable would be either located in the
/etc/killpower directory or (using the info from the RedHat scripts
directory) the /etc/sysconfig.. but further reading and a bit of guess
and by golly..
I'm now thinking that the ups file is pointing to a file called
"killpower" i...
2016 May 13
3
Low Battery event not occurring
...ry.charge.low" is "10". My current "battery.charge" is "6". However, when I type "upsc myups at localhost ups.status", it only shows OB and DISCHRG, not LB.
If I understand the NUT process correctly, it looks for this LB status in order to create the POWERDOWNFLAG. "In upsmon.conf, add a POWERDOWNFLAG directive with a filename. upsmon will create this file when the UPS needs to be powered off during a power failure when low battery is reached."
Please let me know if you need me to provide any further information. Again, any help is greatly appr...
2010 Jul 14
1
I am a bit confused
I have read the shutdown.txt in the docs directory. It says that after
upsmon calls the shutdown command init takes over. This I understand
clearly. However, step 8.
8. init then runs your shutdown script. This checks for the
POWERDOWNFLAG, finds it, and tells the UPS driver(s) to power off
the load.
Since init is shuting down the system, why is the POWERDOWNFLAG needed?
Why do I need a shutdown script? init is shuting down everything!
Durwin F. De La Rue
Management Sciences, Inc.
6022 Constitution Ave. NE
Albuquerque, NM 871...
2018 Sep 07
2
WinNUT Client Logs
...y comments here?
I am not a WinNUT user, but in general NUT clients do not produce their own log
files. If you want more detail, you have to set the debug options and then look
in your system logs.
Upsmon.conf
MONITOR ups at pfsense 1 <username> <password> slave
...
POWERDOWNFLAG /usr/local/ups/etc/killpower
My understanding is that when upsmon in a client receives FSD, it sets the
POWERDOWNFLAG. You have specified a Unix/Linux style address for a Windows box?
Roger
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
...t could be a stupid thing that I'm missing...
My configurations files are like this:
*ups.conf:*
[ups0]
driver = mge-shut
port = /dev/ttyS0 #It's serial, not USB
*upsmon.conf:*
# NOTIFYCMD <command>
NOTIFYCMD /usr/local/ups/bin/notifyme
# POWERDOWNFLAG - Flag file for forcing UPS shutdown on the master system
POWERDOWNFLAG /etc/killpower
# This file is supposed to be created by NUT when a disconnection
occurs, but I didn't see it. Am I right?
*upssched.conf:*
# CMDSCRIPT <scriptname>
CMDSCRIPT /usr/local/ups/bin/upssched-cmd
# P...
2018 Sep 04
2
WinNUT Client Logs
...first time and I cannot make it to work. Here are my settings:
Nut.conf
MODE=netclient
Upsmon.conf
MONITOR ups at pfsense 1 <username> <password> slave
MINSUPPLIES 1
SHUTDOWNCMD "C:\\WINDOWS\\system32\\shutdown.exe -s -t 0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /usr/local/ups/etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
Thank you.
Regards,
Kevin Mychal M. Ong
Sr Infrastructure Engineer, Microsoft Technology Services - Messaging
Global Infrastructure Operations
Ingram Micro Inc.
4F Three World Square, 22 Upper McKinley Hill, Fort Boni...
2023 Jan 09
0
How verbose should NUT be by default?
...tem has only one copy of nut. And -D can
print it to find out; it will be the same after a failure or before.
"upsmon -K", documented to return 0/1, should not print by default
version
that there is no pidfile
that a upsmon daemon is or is not running
the location of POWERDOWNFLAG
and even that POWERDOWNFLAG is not set
I'm ok with printing one line to stdout that it is set, because that's
a big deal.
I'm -1 but not a big deal on printing that is NOT set, because that's
normal.
I think it would be good to stat the dir containing POWERDOWNFLAG and...
2023 Jan 09
0
[Nut-upsdev] How verbose should NUT be by default?
...tem has only one copy of nut. And -D can
print it to find out; it will be the same after a failure or before.
"upsmon -K", documented to return 0/1, should not print by default
version
that there is no pidfile
that a upsmon daemon is or is not running
the location of POWERDOWNFLAG
and even that POWERDOWNFLAG is not set
I'm ok with printing one line to stdout that it is set, because that's
a big deal.
I'm -1 but not a big deal on printing that is NOT set, because that's
normal.
I think it would be good to stat the dir containing POWERDOWNFLAG and...
2018 Sep 07
0
WinNUT Client Logs
How do you setup the debug options in WinNUT?
Correct, it sets the POWERDOWNFLAG when it receives an FSD but only if it acts as a NUT MASTER (since the UPS is connected locally to the NUT MASTER and can issue a killpower). This is the default value and I did not care to change it because it won't be use on my Windows machine anyway as it is working as a NUT SLAVE.
Thank yo...
2011 Jun 08
2
Misconfiguration of Windows MSI installer 2.6.0-1 with my Powerware 5115 connected via USB port
...*upsd.users:*
[monuser]
password = xxxxxxxx
upsmon master
*upsmon.conf:*
MONITOR PW5115 at 192.168.1.12 1 monuser xxxxxxxx master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /sbin/upssched
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
*upssched.conf:*
CMDSCRIPT /bin/upssched-cmd
AT ONBATT * START-TIMER onbattwarn 10
AT ONLINE * CANCEL-TIMER onbattwarn
AT LO...
2016 May 14
2
Low Battery event not occurring
...erial number, but in this case, I don't think we have too many other reports of this hardware to go on. The closest ones seem to be: http://networkupstools.org/ddl/Tripp_Lite/SMART2200RMXL2U.html
> If I understand the NUT process correctly, it looks for this LB status in order to create the POWERDOWNFLAG. "In upsmon.conf, add a POWERDOWNFLAG directive with a filename. upsmon will create this file when the UPS needs to be powered off during a power failure when low battery is reached."
That is correct. You can also configure NUT drivers to ignore the UPS's LB flag and synthesize it f...
2023 Jan 09
7
How verbose should NUT be by default?
Hello all,
During discussion of https://github.com/networkupstools/nut/issues/1782
me and Greg uncovered a diametral difference of opinion about the verbosity
of NUT programs in general, and of `upsmon -K` (checking for POWERDOWNFLAG
during shutdown integration) in particular.
To me as a sysadmin type often (in the past at least) having to
troubleshoot the tails and ends of systems' untimely (or unclean) demise,
all info about it feels like useful clues. And often is.
Also NUT dealing in the business of cutting power...
2023 Jan 09
7
How verbose should NUT be by default?
Hello all,
During discussion of https://github.com/networkupstools/nut/issues/1782
me and Greg uncovered a diametral difference of opinion about the verbosity
of NUT programs in general, and of `upsmon -K` (checking for POWERDOWNFLAG
during shutdown integration) in particular.
To me as a sysadmin type often (in the past at least) having to
troubleshoot the tails and ends of systems' untimely (or unclean) demise,
all info about it feels like useful clues. And often is.
Also NUT dealing in the business of cutting power...
2010 Nov 29
3
nut 2.4 et MGE 2200
...mon.conf
RUN_AS_USER nut
MONITOR pulsar at localhost 1 admin1 lahdnets master
MINSUPPLIES 1
FINALDELAY 5
HOSTSYNC 15
NOTIFYCMD /home/nut/alert_ups.sh
# NOTIFYCMD /sbin/upssched
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
DEADTIME 15
NOCOMMWARNTIME 300
RBWARNTIME 43200
# POWERDOWNFLAG /etc/killpower
NOTIFYMSG ONLINE "UPS %s on line power"
NOTIFYMSG ONBATT "UPS %s on battery"
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
when the server stops, the log is not generated
and Same with upssched ...
where can I seach ?
Thank you for your...
2015 Jan 31
2
Start up script fails
...re that even knowing that would have helped, but it
is a clue for anyone else that comes across this thread.
I am up and talking to the UPS, so it should just be a matter of getting my
shutdown stuff working at this point.
One last question if you don't mind. I noticed the "default" POWERDOWNFLAG is
set to /etc/killpower, but I changed that to /tmp and modified my umountroot
script to mount it read only too, because I know it gets wiped on reboot. Is
there anything that removes /etc/killpower on reboot, or a more compelling
reason to put killpower in /etc, other than it is usually not on a...
2024 Sep 08
0
Nut-upsuser Digest, Vol 231, Issue 4
...AT ONLINE * CANCEL-TIMER shutdown
AT ONLINE * EXECUTE resume
AT ONBATT * START-TIMER shutdown 15
AT ONBATT * EXECUTE shutdown-warning
AT LOWBATT * START-TIMER shutdown
AT LOWBATT * EXECUTE shutdown-warning
BTW i finished the last TEST with everything hooked to my UPS and it seems that this line POWERDOWNFLAG /etc/killpower
was what causing my UPS to shut itself down after a period of time
i really don't know if deleting POWERDOWNFLAG was the right choice or not but if there is anything i can do to properly fix it please let me know
________________________________
From: Nut-upsuser <nut-upsu...
2015 Jan 31
0
Start up script fails [/etc/killpower]
On Jan 31, 2015, at 3:09 PM, Melvin Call <melvincall979 at gmail.com> wrote:
> One last question if you don't mind. I noticed the "default" POWERDOWNFLAG is
> set to /etc/killpower, but I changed that to /tmp and modified my umountroot
> script to mount it read only too, because I know it gets wiped on reboot. Is
> there anything that removes /etc/killpower on reboot, or a more compelling
> reason to put killpower in /etc, other than it...
2011 Jul 18
0
CyberPower USB UPS fails to cut power during shutdown
...upsdrvctl shutdown, the
UPS cuts power immediately.
However, if I simulate a shutdown with upsmon -c fsd, the UPS fails to
cut power. The normal halt procedure completes, and my machine turns
itself off and stays off.
The relevant part of the shutdown script is:
flag=`sed -ne 's#^ *POWERDOWNFLAG *\(.*\)$#\1#p' /etc/nut/upsmon.conf`
wait_delay=`sed -ne 's#^ *POWEROFF_WAIT= *\(.*\)$#\1#p'
/etc/default/nut`
if [ -f "$flag" ] ; then
if $upsmon -K >/dev/null 2>&1 ; then
log_action_msg "Shutting down the UPS ..."
# log_ac...