Displaying 20 results from an estimated 537 matches for "upssched".
2025 Apr 02
2
wrong NOTIFYTYPE always ONBATT on upssched TIMER ?
...eive events from TIMER like LINE-STATUS-xx
> NOTIFYTYPE is always ONBATT
> in all other cases, NOTIFYTYPE is TRUE and same as it was called by upsmon
in the log I see :
* Initial ONBATT:
Apr 1 17:07:39 upsmon[652]: Onduleur UPS1 at localhost en mode Secours sur
batterie
Apr 1 17:07:39 upssched[9126]: Executing command: ONBATT
Apr 1 17:07:39 upssched-cmd-received-NOTIFYTYPE: ONBATT
Apr 1 17:07:39 upssched[8783]: Cancelling timer: LINE-STATUS-5
...
Apr 1 17:07:39 upssched[8783]: New timer: BATT-STATUS-5 (300 seconds)
...
* Handler for BATT-STATUS-5 fired and issued ONBATT after 5 mi...
2025 Apr 01
1
wrong NOTIFYTYPE always ONBATT on upssched TIMER ?
HI
i'am using schema upsmon call : NOTIFYCMD /sbin/upssched
and this part of upsschede strategy (working fine)
device.model: Ellipse ECO 650
root at ---:~# cat /etc/nut/upssched.conf
# Network UPS Tools - upssched.conf sample file
CMDSCRIPT /opt/nut/bin/upssched-cmd
PIPEFN /var/run/nut/upssched.pipe
LOCKFN /var/run/nut/upssched.lock
#
===============...
2015 Apr 27
3
upssched setup
Hi Roger,
I get:
Apr 27 20:50:05 unifi upsmon[1022]: UPS ups on batteryApr 27 20:50:05 unifi upssched[2688]: Timer daemon startedApr 27 20:50:06 unifi upssched[2688]: New timer: onbatt (20 seconds)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...
2025 Apr 02
0
wrong NOTIFYTYPE always ONBATT on upssched TIMER ?
...son managing the list at
> nut-upsuser-owner at alioth-lists.debian.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nut-upsuser digest..."
>
>
> Today's Topics:
>
> 1. wrong NOTIFYTYPE always ONBATT on upssched TIMER ? (RemiG)
> 2. Re: wrong NOTIFYTYPE always ONBATT on upssched TIMER ?
> (Jim Klimov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 1 Apr 2025 17:22:54 +0200
> From: RemiG<mailing-nut at dbmtech...
2015 Apr 27
2
upssched setup
...and it didnt work.
Hence why I was trying to run just the shell script manually. I am not sure if this works though with the timer defined in it?
Cheers,
James
Date: Mon, 27 Apr 2015 15:03:44 +0200
From: roger at rogerprice.org
To: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] upssched setup
On Mon, 27 Apr 2015, James Hammond wrote:
> I am unable to get upssched working correctly as my UPS calls low
> battery too late and there is no way to change it. I am running Nut
> 2.7.3 on Ubuntu 14.04 I have made this script, called
> /sbin/upssched-cmd.sh
>
> #!/b...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...s more system information from the commands you mentioned.
Kari
root at fricka:~# lsof -p 1716171
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1002/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
upssched 1716171 root cwd DIR 8,2 4096 2 /
upssched 1716171 root rtd DIR 8,2 4096 2 /
upssched 1716171 root txt REG 8,2 39240 21762148 /usr/sbin/upssched
upssched 1716171 root mem REG 8,2 1922136 21764230 /...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...s more system information from the commands you mentioned.
Kari
root at fricka:~# lsof -p 1716171
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1002/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
upssched 1716171 root cwd DIR 8,2 4096 2 /
upssched 1716171 root rtd DIR 8,2 4096 2 /
upssched 1716171 root txt REG 8,2 39240 21762148 /usr/sbin/upssched
upssched 1716171 root mem REG 8,2 1922136 21764230 /...
2006 May 09
4
upssched does not start the script when timer triggers
Hello,
I'm using nut with my MG Ellipse on serial port. No problem since one
year. Two days ago, I wanted to add a phone alert through my asterisk
box when power is down. Since then, upssched doesn't make his job
anymore. here is the "syslog" I get when the power cord is unplugged :
>
> May 9 11:39:34 serveur upsmon[6411]: UPS ellipse@localhost on battery
> May 9 11:39:34 serveur upssched[6823]: Timer daemon started
> May 9 11:39:34 serveur upssched[6823]:...
2020 Mar 11
1
Fwd: Windows upssched does not work
ut 10. 3. 2020 o 16:34 Roger Price <roger at rogerprice.org> napĂsal(a):
>
> On Tue, 10 Mar 2020, Radoslav Chovan wrote:
>
> > I have problem with upssched on windows. Upssched is not executed. I
> > have 2 scripts, 1 for notification in upsmon and second for scheduling
> > in upssched. Monitoring is working fine, script write to log. I'm
> > using binary windows installer 2.6.5-6 from NUT.
>
> > --- upsmon.conf
> >...
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
Hi, I'm having problems to configure upssched in order to notify me only
when the disconnection exceeds the 30 seconds.
Now, I'm getting a mail if it is disconnected just for a second, or even
worse, when I got low tension.
So, mail notifications are well configured, I guess...
I think the problem is in upssched.
I'm new to this, so it...
2019 Mar 26
0
Bug: upssched and 3+ UPSes
Hi,
I've stumbled over a race condition in upssched when using 3 or more UPSes in combination with START-TIMER/CANCEL-TIMER.
I have a solution that works but is ugly, so I'm going to describe the bug here in the hope somebody can come up with a better solution.
The problem is in upssched.c:629 check_parent() (see https://github.com/networkupst...
2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
Hi,
I have been running nut successfully for a long time with my Debian 11 server. I upgraded my server to Debian 12 today, which upgraded nut also from 2.7.4-13 to 2.8.0-7. I noticed that after upgrade there was a upssched process running and taking 100% cpu time.
I checked if there were any changes to configuration file formats with nut upgrade and only differences I noticed were a terminology change from master/slave to primary/secondary in upsd.users and upsmon.conf, and dummy mode change for the dummy-ups. I did...
2012 Jun 25
1
upssched script doesn't start on event
Dear list,
Can't make upssched notify me on event occured.
OS: Debian, 2.6.26-1-amd64
Nut: 2.4.3-1.1squeeze1
UPS: Ippon Smart Winner 3000 connected via COM
On event ( plug out the cord from UPS ) upsmon detect's status change to
OB and gives WALL and syslog notify, but no script starting. In syslog
no errors and no upssc...
2015 Apr 27
0
upssched setup
...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 20:50:05 unifi upssched[2688]: Timer daemon started
> Apr 27 20:50:06 unifi upssched[2688]: New timer: onbatt (20 seconds)
> Apr 27 20:50:26 unifi upssched[2688]: Event: onbatt
> Apr 27 20:50:26 unifi upssched[2688]: exec_cmd(/sbin/upssched-cmd.sh
> onbatt) returned 126
> Apr 27 20:50:41 unifi upssched[2688...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...Experimental debugging now sounds possible.
(*) PC under the desk wails with all its cooling fans as soon as I started
the client which spawned a daemon and itself had exited:
$ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the
'heartbeat at localhost' we were launched to process?
0.000053 [D1] parse_at: 'heartbeat at localhost' in AT command matched
the 'heartbeat at localhost' UPSNAME we were lau...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...Experimental debugging now sounds possible.
(*) PC under the desk wails with all its cooling fans as soon as I started
the client which spawned a daemon and itself had exited:
$ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the
'heartbeat at localhost' we were launched to process?
0.000053 [D1] parse_at: 'heartbeat at localhost' in AT command matched
the 'heartbeat at localhost' UPSNAME we were lau...
2007 Jun 24
1
upssched. Again.
Hi everyone,
Here I am with my second attempt to persuade upssched to do things; for some
reasons it just won't! Or if it runs, it never runs the script.
OK, the story first: 2.0.3 (conveniently comes as RPMs by default on FC6)
running on FC6; APC Smart-UPS 750 via serial connection all working fine.
Here are the main files:
/etc/sysconfig/ups
SERVER=yes
M...
2018 Sep 20
3
Upssched not getting called from UPSMON
Hi, I cant seem to get my upssched to get called by upsmon. Upsmon -c fsd just shuts down without the message I set or the one in upssched-cmd
/etc/ups/upsmon.conf:
MONITOR ups6 at localhost 1 <user> <pass> master
MONITOR ups8 at localhost 1 <user> <pass> master
SHUTDOWNCMD "/sbin/shutdow...
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"
NOTIFYMSG COMMBAD...
2015 Apr 27
2
upssched setup
...e shutdown working now but need to tighten up the permissions. Not too sure where to start with assigning the correct permissions.
Cheers,
James
> Date: Mon, 27 Apr 2015 21:25:45 +0100
> From: neil at dana.org.uk
> To: nut-upsuser at lists.alioth.debian.org
> Subject: Re: [Nut-upsuser] 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,
>...