Displaying 20 results from an estimated 76 matches for "lockfn".
Did you mean:
lockf
2019 Mar 26
0
Bug: upssched and 3+ UPSes
...p with a better solution.
The problem is in upssched.c:629 check_parent() (see https://github.com/networkupstools/nut/blob/master/clients/upssched.c ).
When all three UPSes goes on battery at the same time (think major power outage) upssched is started three times. This first upssched to get the lockfn file should start the timer-daemon while the other two upssched instances should wait for it to start up and then try to connect again. It works fine with two UPSes, but with three UPSes the following happens:
upssched#1: UPS1 sees the timer daemon is not running, takes the lockfn file and starts...
2008 Sep 17
0
FW: Setup of upssched on opensuse 11 - examined pipefn ad lockfm
...eren 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 LOCKFN exists and is
> writeable by the user running upssched (typically 'upsd' on openSUSE).
>
> Best regards, Arjen
Arjen;
Thanks for the pointers. I looked at the lockfn and pipefn location as shown
in the upssched.conf file. Mine both point to
/var/lib/ups/upssched/upssched.pipe an...
2007 Jun 24
1
upssched. Again.
...driver = apcsmart
port = /dev/ttyS0
# cable = 1234
desc = "Smart-UPS 750"
/etc/ups/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
/etc/ups/upssched.conf
CMDSCRIPT /usr/sbin/upssched-cmd
PIPEFN /var/run/upssched/upssched.pipe
LOCKFN /var/run/upssched/upssched.lock
#AT ONBATT APC750 at localhost START-TIMER onbattwarn 60
AT ONBATT APC750 at localhost EXCUTE onbattwarn
#AT ONLINE APC750 at localhost CANCEL-TIMER onbattwarn
/usr/sbin/upssched-cmd
#!/bin/sh
echo "Booo" > /tmp/upstest
/usr/bin/logger -t upssched-...
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
...OWNFLAG /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
# PIPEFN <filename>
PIPEFN /var/run/upssched/upssched.pipe
# LOCKFN <filename>
LOCKFN /var/run/upssched/upssched.lock
#The directory /var/run/upssched is world-writable so both files could
be created, but it is actually empty.
# Possible AT commands
AT ONBATT * START-TIMER upsgone 30
Then, I got two more files in */usr/local/ups/bin*: notifyme and
upssched...
2007 Jun 27
1
Using MGE UPS's with NUT and openSUSE
...d install it with the command
rpm --nopost -Uvh mgeups-psp-3.0.2-1.i586.rpm
2. The installation of nut and mgeups-psp sets up a default configuration
which needs further tuning to run correctly. As root, in file
/etc/ups/upssched.conf replace
PIPEFN /var/state/ups/upssched.pipe
LOCKFN /var/state/ups/upssched.lock
with
PIPEFN /var/run/ups/upssched.pipe
LOCKFN /var/run/ups/upssched.lock
and create directory /var/run/ups
3. The MGE front-end to NUT will place yet another power plug in the
system tray, which when clicked provides a status display. If the user...
2012 Jan 04
3
NUT Windows port questions
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120104/34be491b/attachment.html>
2012 Sep 13
2
Early shutdowns and 2.6.5-1 package for Windows
...t;
NOTIFYMSG COMMBAD "Communications with UPS %s lost"
NOTIFYFLAG COMMOK SYSLOG+EXEC+WALL
NOTIFYFLAG COMMBAD SYSLOG+EXEC+WALL
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
upssched.conf
CMDSCRIPT "cmd.exe -C C:\\NUT\\1.cmd"
PIPEFN "C:\\NUT\\pipefn.lock"
LOCKFN "C:\\NUT\\lockfn.lock"
AT COMMBAD upsa at 192.168.10.200 START-TIMER upslost 10
AT COMMOK upsa at 192.168.10.200 CANCEL-TIMER upslost
1.cmd
echo %1 > 1.txt
I have found some issues I would like to report.
1. NOTIFYCMD parameter is not specified
NUT doesn't start UPS...
2006 May 09
4
upssched does not start the script when timer triggers
...sn't exist. It worked before without any problem. the path is ok. The
command is ok.
her is my upssched.conf
> # the script to be executed
> CMDSCRIPT /root/scripts/upsalert
>
> # mandatory fields that must be set before AT commands
> PIPEFN /var/run/upssched/upssched.pipe
> LOCKFN /var/run/upssched/upssched.lock
>
> # the timers, here 30 sec after the ONBATT (ups on battery) event
> AT ONBATT * START-TIMER phone_alert 15
> AT ONBATT * START-TIMER onbatt 900
>
> # cancel the countdown if power is back
> AT ONLINE * CANCEL-TIMER onbatt
> AT ONLINE * CAN...
2020 Mar 10
2
Fwd: Windows upssched does not work
...NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYFLAG NOCOMM SYSLOG+EXEC
NOTIFYFLAG NOPARENT SYSLOG+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
--- upssched.conf
CMDSCRIPT "cmd.exe /C C:\\NUT\\sched.cmd"
PIPEFN "C:\\NUT\\upssched.pipe"
LOCKFN "C:\\NUT\\upssched.lock"
AT ONBATT * EXECUTE onbattnow
AT ONBATT * START-TIMER onbattwarn 30
AT ONLINE * EXECUTE ups-back-on-line
AT ONLINE * CANCEL-TIMER onbattwarn
--- notify.cmd
@ECHO OFF
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%b.%%a.%%c)
Fo...
2020 Jan 28
0
Timer doesn't appear to start
...utmon
> total 32
> -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history
> drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched
there is a d in the first position of the upssched permissions showing this
is a directory. This is the directory location for PIPEFN and LOCKFN as
defined in upssched-cmd
PIPEFN /home/nutmon/upssched/upssched.pipe
LOCKFN /home/nutmon/upssched/upssched.lock
You are correct there are no EXECs on the relevant NOTIFYFLAGs. When I get
home I'll add EXEC to the lines, test and update the thread.
On Tue, Jan 28, 2020 at 7:00 AM <nut-ups...
2012 Jun 25
1
upssched script doesn't start on event
...ically low"
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 20
-------------
upssched.conf:
CMDSCRIPT /usr/local/bin/upssched-cmd
PIPEFN /var/run/nut/upssched/upssched.pipe
LOCKFN /var/run/nut/upssched/upssched.lock
AT ONBATT * EXECUTE onbatt
AT ONBATT * START-TIMER onbatt_timer 120
AT ONLINE * CANCEL-TIMER onbatt_timer
AT ONLINE * EXECUTE online
AT FSD * EXECUTE fsd
---------------
-rwxr-x--- 1 nut nut 665 ??? 25 01:01 /usr/local/bin/upssched-cmd
What am i doing wrong?
th...
2023 Jan 12
1
NUT & UPS, how to shut down client after 2 min on battery?
...NBATT SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYCMD /usr/sbin/upssched
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
And in /etc/nut/upssched.conf (changed from 2 min to 4 min)
CMDSCRIPT /etc/nut/upssched-execscript.sh
PIPEFN /etc/nut/upssched.pipe
LOCKFN /etc/nut/upssched.lock
AT ONBATT * START-TIMER shutdown_onbatt 240
AT ONBATT * EXECUTE info_onbatt
AT ONLINE * CANCEL-TIMER shutdown_onbatt
AT ONLINE * EXECUTE ups-back-on-power
AT LOWBATT * EXECUTE shutdown_lowbatt
AT REPLBATT * EXECUTE replace_batt
And in /etc/nut/upssched-execscript.sh...
2013 Jan 04
2
UPSSCHED and FreeBSD 8.3?
...G+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
I want to send an email to my cellphone only for significant UPS events that
involve starting the generator and want to ignore short duration events.
My upssched.conf:
CMDSCRIPT /usr/local/bin/upssched-cmd
PIPEFN /var/db/nut/upssched/upssched.pipe
LOCKFN /var/db/nut/upssched/upssched.lock
AT ONBATT * START-TIMER upsbatt 30
AT ONLINE * CANCEL-TIMER upsbatt
AT LOWBATT * EXECUTE ups-low-batt
My CMDSCRIPT /usr/local/bin/upssched-cmd:
#!/bin/sh
case $1 in
upsbatt)
echo "The UPS has been on battery for awhile" \...
2020 Jan 26
1
Timer doesn't appear to start
...deltec-PRA1500 at localhost on line power
I've checked to make sure PIPEFN LOCKFIN directory can be written to by my
nut user. I never see a pid file created after the power is pulled
however.
here is my upssched.conf
CMDSCRIPT /bin/upssched-cmd
PIPEFN /home/nutmon/upssched/upssched.pipe
LOCKFN /home/nutmon/upssched/upssched.lock
AT COMMBAD deltec-PRA1500 at localhost START-TIMER upsgone 10
AT ONBATT deltec-PRA1500 at localhost START-TIMER upsonbat 60
AT COMMOK deltec-PRA1500 at localhost CANCEL-TIMER upsgone
AT ONLINE deltec-PRA1500 at localhost CANCEL-TIMER upsonbat
AT COMMOK delte...
2017 Jan 11
3
NUT Client shuts down when performing runtime calibration on APC UPS
...EC
NOTIFYFLAG NOPARENT SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
-----------------------------------------------------------------------------------------------------------
nas4free: etc# more upssched.conf
CMDSCRIPT /usr/local/bin/upssched-cmd
PIPEFN /var/run/upssched.pipe
LOCKFN /var/run/upssched.lock
AT COMMOK * EXECUTE notify
AT COMMBAD * EXECUTE notify
AT REPLBATT * EXECUTE notify
AT NOCOMM * EXECUTE notify
AT FSD * EXECUTE forced-shutdown
AT NOPARENT * EXECUTE notify
AT SHUTDOWN * EXECUTE notify
AT ONLINE * CANCEL-TIMER shutdown
AT ONLINE * EXECUTE resume
AT ONBATT *...
2012 Oct 09
1
network-ups-tools won't shutdown my PC
...host 1 ups ups master
MINSUPPLIES 1
FINALDELAY 5
HOSTSYNC 15
SHUTDOWNCMD "usr/bin/systemctl poweroff"
POWERDOWNFLAG /etc/killpower
POLLFREQ 5
POLLFREQALERT 5
DEADTIME 15
NOCOMMWARNTIME 300
RBWARNTIME 43200
upssched.conf :
CMDSCRIPT /opt/bin/upssched-cmd
PIPEFN /var/run/nut/upssched.pipe
LOCKFN /var/run/nut/upssched.lock
AT ONBATT * EXECUTE ups-on-battery
AT ONLINE * EXECUTE ups-back-on-line
When I unplug my UPS from power, I have a broadcast message saying so :
fine.
When I replug my UPS to power, I have a broadcast message saying so : fine
When I let my UPS unplugged from power, and...
2019 Jun 08
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...FLAG SHUTDOWN EXEC+SYSLOG+WALL
NOTIFYFLAG REPLBATT EXEC+SYSLOG+WALL
NOTIFYFLAG NOCOMM EXEC+SYSLOG+WALL
NOTIFYFLAG NOPARENT EXEC+SYSLOG+WALL
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
etc/upssched.conf
CMDSCRIPT /opt/local/bin/upssched-cmd
PIPEFN /opt/local/var/db/ups/upssched/upssched.pipe
LOCKFN /opt/local/var/db/ups/upssched/upssched.lock
AT ONBATT ups at xxx.xxx.xxx.xxx EXECUTE on-battery
AT ONLINE ups at xxx.xxx.xxx.xxx EXECUTE ups-back-on-line
AT COMMBAD ups at xxx.xxx.xxx.xxx START-TIMER upsgone 75
AT COMMOK ups at xxx.xxx.xxx.xxx CANCEL-TIMER upsgone
bin/upssched-cmd
#...
2015 Apr 27
3
upssched setup
...s)Apr 27 20:50:26 unifi upssched[2688]: Event: onbattApr 27 20:50:26 unifi upssched[2688]: exec_cmd(/sbin/upssched-cmd.sh onbatt) returned 126Apr 27 20:50:41 unifi upssched[2688]: Timer queue empty, exiting
/etc/nut/upssched.conf
CMDSCRIPT /sbin/upssched-cmd.shPIPEFN /etc/nut/upssched/upssched.pipeLOCKFN /etc/nut/upssched/upssched.lockAT ONBATT * START-TIMER onbatt 20AT ONLINE * CANCEL-TIMER onbatt
/sbin/upssched-cmd.sh
#!/bin/sh# Debugging: Log all calls to this scriptlogger -t upssched-cmd.sh Calling upssched-cmd.sh $1 case $1 in onbatt) /sbin/upsmon -c fsd;; *) echo "shutdown im...
2017 Jul 03
2
Help with Elite 800VA usb UPS
...-cmd "Unrecognized command: $1"
;;
esac
while upssched.conf is
# Network UPS Tools - upssched.conf sample file
#
#
============================================================================
CMDSCRIPT /usr/local/bin/upssched-script
PIPEFN /var/run/nut/upssched/upssched.pipe
LOCKFN /var/run/nut/upssched/upssched.lock
AT ONBATT * EXECUTE onbattwarn
AT ONLINE * EXECUTE ups-back-on-power
Running upson in debug mode I can see the change of the status (I have a
cycle of 30 secs for online/batterry/low battery) but the syslog reports
Jul 3 16:17:15 artu upsmon[4685]: UPS dummy...
2017 Sep 17
4
building on Solus
Hi Charles,
Thanks for your help.
Seems to be mostly ok except am getting error access denied. See below.
I see from searching this is a common error but so far I can't find a fix.
This is how I configured things before make and install.
created group nut
nut:x:103:
created system user ups with group nut.
ups:x:123:103::/home/ups:/bin/bash
Create statepath directory.
sudo mkdir -p