Displaying 20 results from an estimated 28 matches for "upsgon".
Did you mean:
upsmon
2005 Sep 20
2
upssched-cmd wrong call
Hi,
i am running nut-2.0.0-5 on Fedora core 3.
I have the following Problem:
In my upssched.conf i have set the Following Parameter:
CMDSCRIPT /usr/local/guzman/sbin/upssched-cmd
...
AT COMMBAD * START-TIMER upsgone 10
AT COMMOK * CANCEL-TIMER upsgone
...
Now if I pull the serial Plug, in my log i see the following error:
Event: upsgone
Execute command failure: /usr/local/guzman/sbin/upssched-cmd upsgone: No
such file or directory
The script exists:
-rwxr-xr-x root root /usr/local/guzman/sbin/upssched-cm...
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
...ssched-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-cmd
*notifyme:*
#!/bin/sh
echo "$@" | mail -s "[NUT] Notify" mail@address
*upssched-cmd:*
case $1 in
upsgone)
echo "The UPS has been on battery for awhile" \...
2019 Jun 08
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...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
#! /bin/sh
case $1 in
upsgone)
logger -t upssched-cmd "Lost communication with UPS"
/usr/bin/osascript -e 'tell app (path to frontmost application as text) to display dialog "Lost co...
2016 Jun 14
5
Besoin d’aide pour upssched
...YFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
2/ dans /etc/nut/upssched.conf
CMDSCRIPT /usr/bin/upssched-cmd
PIPEFN /var/run/nut/upssched/upssched.pipe
LOCKFN /var/run/nut/upssched/upssched.lock
AT ONBATT * START-TIMER upssms 30
AT ONLINE * CANCEL-TIMER upssms
AT ONBATT * START-TIMER upsgone 150
AT ONLINE * CANCEL-TIMER upsgone
AT ONBATT * EXECUTE upssms
AT ONLINE * EXECUTE ups-back-on-power
3/ le script /usr/bin/upssched-cmd
#!/bin/bash
case $1 in
upssms)
logger -t upssched-cmd "The UPS has been gone for 30 secs. Warn by sms..."
/bin/echo "Power failed. System will h...
2020 Jan 26
1
Timer doesn't appear to start
...ory 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 deltec-PRA1500 at localhost EXECUTE upsback
AT ONLINE deltec-PRA1500 at localhost EXECUTE upsonac...
2019 Jun 08
0
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...d
> 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
Is your System Shutdown Plan to shut down using upsmon or using the script
upsched-cmd? In upssched.conf you do not have a line
AT LOWBATT ups at ... EXECUTE lowbatt
and in upssched-cmd there is nothing to shut down the system....
2014 Jan 21
0
Shutdown when both (all) UPS on battery / low battery
...FLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG COMMOK SYSLOG+WALL
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
upssched.conf:
CMDSCRIPT /usr/bin/upssched-cmd
PIPEFN /var/run/nut/upssched.pipe
LOCKFN /var/run/nut/upssched.lock
AT COMMBAD * EXECUTE upsgone
AT ONBATT * START-TIMER onbatt 30
AT LOWBATT * START-TIMER lowbatt 130
AT ONLINE * CANCEL-TIMER onbatt
AT ONLINE * CANCEL-TIMER lowbatt
/usr/bin/upssched-cmd:
#! /bin/sh
case $1 in
upsgone)
#logger -t upssched-cmd "The UPS has been gone for awhile"...
2014 Jan 21
3
Shutdown when both (all) UPS on battery / low battery
On Jan 21, 2014, at 3:16 AM, Rafa? Oleszek wrote:
> I would like to mention that MINSUPPLIES manipulation doesn't work. My nut version is : 2.2.2-4 (RHEL 5)
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
2008 Sep 17
0
FW: Setup of upssched on opensuse 11 - examined pipefn ad lockfm
...# Start a timer called <timername> that will trigger after <interval>
# seconds, calling your CMDSCRIPT with <timername> as the first
# argument.
#
# Example:
# Start a timer that'll execute when any UPS (*) has been gone 10 seconds
#
# AT COMMBAD * START-TIMER upsgone 10
# AT ONBATT tim_ups at localhost START-TIMER timonbattwarn 10
# AT ONBATT test_ups at localhost START-TIMER testonbattwarn 10
# -----------------------------------------------------------------------
#
# - CANCEL-TIMER <timername> [cmd]
#
# Cancel a running timer called <...
2009 Dec 02
5
Timers fireing too early
...l[4377]: wall: user root broadcasted 1 lines (34 chars)
Dec 2 18:49:51 storage01 upssched-cmd: Unrecognized command: UPS ups0 at localhost on line power
Last two lines of upssched.conf
AT ONBATT * START-TIMER ONBATT 20
AT ONLINE * CANCEL-TIMER ONBATT
Contents of upssched-cmd
case $1 in
upsgone)
logger -t upssched-cmd "The UPS has been gone for awhile"
;;
ONBATT)
logger -t upssched-cmd "Im On Battery"
;;
*)
logger -t upssched-cmd "Unrecognized command: $1"...
2014 Oct 14
1
Belkin usp startup
...x, etc.
upsmon.conf:MONITOR myups at localhost 1 gene xxxpassxxxx master
upsmon.conf:# MONITOR myups at localhost 1 upsmon pass master (or slave)
upssched.conf:# If a specific UPS (myups at localhost) comes back online,
then stop the
upssched.conf:# AT COMMOK myups at localhost CANCEL-TIMER upsgone
upsstats-single.html:<!-- LINK REL="stylesheet" TYPE="text/css"
HREF="http://localhost/nut/nut.css" / -->
Is there, someplace in this deb install, a README that helps one to set it
up correctly?
Cheers, Gene Heskett
--
"There are four boxes to be used...
2020 Jan 11
1
System with MGE UPS shuts down too early
On January 11, 2020 3:42:15 PM GMT+02:00, Roger Price <roger at rogerprice.org> wrote:
>On Sat, 11 Jan 2020, Georgi D. Sotirov wrote:
>
>> Jan 11 11:49:15 sotirov-bg upsmon[2677]: UPS mgeups at localhost on
>battery
>> Jan 11 11:49:15 sotirov-bg upssched[29746]: Executing command:
>ups-on-battery
>> Jan 11 11:49:15 sotirov-bg upssched-cmd: Unrecognized command:
2017 Jun 10
1
Apple Mac slave
On Fri, 9 Jun 2017, Robbie van der Walle wrote:
> ... and also still open is the notification on the Mac.
If notify-send is available on the Mac, then perhaps this will work:
In upsmon.conf on the Mac you need
NOTIFYCMD /usr/sbin/upssched (or wherever this goes on a Mac)
NOTIFYFLAG ONBATT SYSLOG+EXEC
In upssched.conf you need
CMDSCRIPT /usr/sbin/upssched-cmd (or wherever this
2019 May 25
2
Low Battery False Alarms
2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
...PS} beeper.toggle
fi
;;
shutdown-ws2019)
MSG="$UPS, $CHMSG - Stopping WS2019"
logger -i -t upsshed-cmd "Stopping WS2019"
setsid /usr/local/bin/shutdown-ws2019 &
;;
upsgone)
logger -i -t upssched-cmd "The UPS has been gone for awhile"
;;
heartbeat-failure-timer)
MSG="NUT heart beat fails. $CHMSG"
# Email
MSG1="Hello, upssched-cmd reports NUT heartbeat has...
2018 Sep 20
3
Upssched not getting called from UPSMON
...6 at localhost EXECUTE UPS6_ONLINE
AT ONBATT ups6 at localhost EXECUTE UPS6_ONBATT
AT ONBATT ups8 at localhost EXECUTE UPS8_ONBATT
AT FSD * EXECUTE shutdown_FSD
None of these get called when the events occur.
/etc/ups/scripts/upssched-cmd
WALL=wall
case $1 in
upsgone)
logger -t upssched-cmd "The UPS has been gone for awhile"
;;
UPS6_ONLINE)
logger -t upssched-cmd "UPS6 is online"
echo "UPS6 is ONLINE" | ${WALL}
;;
UPS8_ONLINE)
...
2017 Apr 17
3
Two UPS via SNMP at one ubunut box
...dmin at xy
;;
shutdownA)
/var/lib/nut/shutdownA.sh
;;
email_B_onbatt)
mail -s "UPS B on battery power" admin at xy
;;
email_Bonline)
mail -s "UPS B on line power" admin at xy
;;
shutdownB)
/var/lib/nut/shutdownB.sh
;;
upsonline)
#etherwake 01:23:45:AB:CD:EF
;;
upsgone)
logger -t upssched-cmd "The UPS has been gone for awhile"
;;
*)
logger -t upssched-cmd "Unrecognized command: $1"
;;
esac
/ var/lib/nut/shutdownB.sh
=============================================
for vms in $(vmware-cmd -H esx01 -U root -P**** -l)
do
vmware-cmd...
2019 May 26
2
Low Battery False Alarms
2016 May 09
2
cyberpower ups need to manully turn on the switch
...LL
NOTIFYFLAG REPLBATT SYSLOG+WALL
NOTIFYFLAG NOCOMM SYSLOG+WALL
NOTIFYFLAG NOPARENT SYSLOG+WALL
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
########### /etc/ups/upssched.conf ###########
CMDSCRIPT /usr/bin/upssched-cmd
########### /usr/bin/upssched-cmd ###########
case $1 in
upsgone)
logger -t upssched-cmd "The UPS has been gone for awhile"
;;
*)
logger -t upssched-cmd "Unrecognized command: $1"
;;
esac
########### /etc/hosts.allow ###########
########### ps aux ###########
nut 2651 0.0 0.0 43396 1116 ? Ss May07 0:08...
2019 Mar 30
2
upssched Not Running