Displaying 20 results from an estimated 3000 matches similar to: "Upssched timers"
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
2008 Dec 15
1
ubuntu 8.04 upssched CANCEL-TIMER ignored
hello,
every two weeks my system shutsdown because my apc ups does a self
test and nut is not picking up the cancel timer event.
according to me all settings are correct. in my upssched-cmd script i
execute a remote shutdown, because nut is running in a virtual machine
and i want the script to shutdown all hosts in my esx environment.
my upssched-cmd script
----
#!/bin/sh
# !! COPY THIS
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"
2015 Apr 27
2
upssched setup
Gents,
Thanks, yes definitely a permissions problem. Roger pointed me in the correct direction with the command to add logging for the script. I have the 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
2005 Jul 21
0
SOLVED: upssched: read confirmation failed
I had upssched call the looping script, and background the process (via
'&'). This seems to have resolved the problem, and eliminate the delay I
was experiencing
-Rob
________________________________
From: nut-upsuser-bounces@lists.alioth.debian.org
[mailto:nut-upsuser-bounces@lists.alioth.debian.org] On Behalf Of Dege,
Robert C.
Sent: Thursday, July 21, 2005 11:04 AM
To:
2005 Jul 21
0
upssched: read confirmation failed
When the UPS starts to run on Battery, upsmon notifies upssched, and
upssched runs an "onbatt script", which sends out an alert every 15
seconds via wall.
When the UPS is put back on line, upsmon acknowledges this change (via
WALL). However, upssched does not get notified properly, so the onbatt
script continues to send alerts. About 45 seconds later, upssched
acknowledges the UPS
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,
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 upssched process occured, just upsmon. There're no
PIPE and LOCK
2009 Dec 02
5
Timers fireing too early
Hi all, I've not been able to find the answer to my timer problem in the faq or the archives. (or google)
Basically, I can't get timers to fire. They fire ignoring the timer value, as if the timer was set to 0. I'm using the OpenFiler distribution, patched to the latest and greatest. upsmon 2.2.2
When I pull the power plug, I see the text "Im In Battery" instantly, instead
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
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi,
I ran the strace command while upssched was 100% CPU hungry. This is what I got:
1686633611.702798 read(7, "", 1) = 0 <0.000004>
1686633611.702816 read(7, "", 1) = 0 <0.000004>
1686633611.702834 pselect6(11, [7 10], NULL, NULL, {tv_sec=1, tv_nsec=0}, NULL) = 1 (in [7], left {tv_sec=0, tv_nsec=999998800}) <0.000006>
1686633611.702862 read(7,
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi,
I ran the strace command while upssched was 100% CPU hungry. This is what I got:
1686633611.702798 read(7, "", 1) = 0 <0.000004>
1686633611.702816 read(7, "", 1) = 0 <0.000004>
1686633611.702834 pselect6(11, [7 10], NULL, NULL, {tv_sec=1, tv_nsec=0}, NULL) = 1 (in [7], left {tv_sec=0, tv_nsec=999998800}) <0.000006>
1686633611.702862 read(7,
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
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
MODEL=apcsmart
DEVICE=/dev/ttyS0
2012 Jul 03
2
[Patch] upssched broken in version 2.6.4 with command with two arguments
Hi,
the last commit to upssched.c (Merge Coverity branch, r3555) broke
upssched with commands that have a second argument.
If a command with a second argument is used, "enc" in line 697 is not an
empty buffer and snprintfcat() just appends some stuff, i.e. the
following command
CANCEL onbatt online
becomes
onlineCANCEL "onbatt" "online"
and is then sent to the
2020 Mar 10
2
Fwd: Windows upssched does not work
Hi,
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.
Here are my configs:
--- nut.conf
MODE=netclient
--- upsmon.conf
MONITOR ups_1000 at 192.168.3.95 1 <user> <password> slave
2016 Jun 14
5
Besoin d’aide pour upssched
Bonjour
je n?arrive pas ? configurer convenablement NUT pour qu?il m?adresse
des SMS en cas de coupure de courant.
C?est important pour moi car dans ma maison les coupures sont tr?s fr?quentes.
Voici ma configuration :
******************************************************************
1/ dans /etc/nut/upsmon.conf
MONITOR eaton at localhost 1 admin motdepasse master
MINSUPPLIES 1
SHUTDOWNCMD
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/shutdown -h +0"
NOTIFYCMD /usr/sbin/upssched
NOTIFYMSG
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