<div dir="ltr"><div dir="auto">Hello,</div><div dir="auto"><br></div><div> Thank you for the report and I don't recall any similar issues.</div><div><br></div><div> Unfortunately, upssched did not have any "native" enablement of debug verbosity in 2.8.0 and older releases (some added with <a href="https://github.com/networkupstools/nut/pull/1864">https://github.com/networkupstools/nut/pull/1864</a> recently), so maybe the best way to get more info at the moment would be to watch syscalls made when it begins to hog CPU and make educated guesses from there, e.g.:</div><div><br></div><div> # strace -f -ttt -T -p "`ps -ef | grep -w upssched | grep -v grep | awk '{print $2}'`"</div><div><br></div><div> I suppose when hogging the CPU it has some reason to quickly interrupt its processing loop - perhaps a lack of some file (socket?) it waits on, etc.</div><div><br></div><div>Hope this helps,<br></div><div>Jim Klimov<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 12, 2023, 14:59 Kari Lempiäinen <<a href="mailto:kari.lempiainen@summerday.net" target="_blank">kari.lempiainen@summerday.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" lang="en-FI">
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="FI">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="FI"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">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 didn’t expect these being the culprit, but I made the changes to my configuration. No change, after five minutes of starting nut, upssched will be running with 100% cpu usage.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Any ideas what could be causing this? Here is my configuration and in the end are some log snippets:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">heartbeat.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"># heartbeat.conf -- 10 minute heartbeat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">ups.status: OL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">TIMER 300<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">ups.status: OB<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">TIMER 300<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">hosts.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">MONITOR eaton5s@localhost "Eaton 5S 700"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">nut.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">MODE=netserver<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">ups.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">maxretry = 3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">[eaton5s]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> driver = usbhid-ups<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> port = auto<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> desc = "Eaton 5S 700i UPS"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> vendorid = "0463"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> productid = "FFFF"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> pollinterval = 15<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">[heartbeat]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> driver = dummy-ups<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> mode=dummy-loop<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> port = heartbeat.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> desc = "Watch over NUT"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">upsd.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">LISTEN 0.0.0.0 3493<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">upsmon.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">RUN_AS_USER root<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">MONITOR eaton5s@localhost 1 upsmaster xxx primary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">MONITOR heartbeat@localhost 0 upsmaster xxx primary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">MINSUPPLIES 1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYCMD /sbin/upssched<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">SHUTDOWNCMD "/sbin/shutdown -h +0"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">POLLFREQ 5<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">POLLFREQALERT 5<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">HOSTSYNC 15<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">DEADTIME 15<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">POWERDOWNFLAG /etc/killpower<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">RBWARNTIME 43200<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOCOMMWARNTIME 300<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">FINALDELAY 5<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG ONLINE "UPS %s: On line power."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG ONBATT "UPS %s: On battery."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG LOWBATT "UPS %s: Battery is low."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG REPLBATT "UPS %s: Battery needs to be replaced."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG FSD "UPS %s: Forced shutdown in progress."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG SHUTDOWN "Auto logout and shutdown proceeding."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG COMMOK "UPS %s: Communications (re-)established."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG COMMBAD "UPS %s: Communications lost."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG NOCOMM "UPS %s: Not available."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYMSG NOPARENT "upsmon parent dead, shutdown impossible."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG ONLINE EXEC<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG ONBATT EXEC<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG LOWBATT SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG REPLBATT SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG FSD SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG SHUTDOWN SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG COMMOK SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG COMMBAD SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG NOCOMM SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">NOTIFYFLAG NOPARENT SYSLOG+WALL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">upssched.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">CMDSCRIPT /etc/nut/upssched-cmd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">PIPEFN /var/run/nut/upssched.pipe<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">LOCKFN /var/run/nut/upssched.lock<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONBATT eaton5s@localhost EXECUTE onbatt<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONBATT eaton5s@localhost START-TIMER beeperoff 15<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONLINE eaton5s@localhost EXECUTE online<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONLINE eaton5s@localhost CANCEL-TIMER beeperoff<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONBATT eaton5s@localhost START-TIMER shutdown-ws2019 300<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONLINE eaton5s@localhost CANCEL-TIMER shutdown-ws2019<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONBATT heartbeat@localhost CANCEL-TIMER heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">AT ONBATT heartbeat@localhost START-TIMER heartbeat-failure-timer 660<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">upsd.users<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">[upsmaster]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> password = xxx<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> upsmon primary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> actions = set<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> actions = fsd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> instcmds = all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">[upsslave]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> password = xxx<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> upsmon secondary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">upssched-cmd<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">#! /bin/bash<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">UPS="eaton5s"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">UPS_USERNAME="upsmaster"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">UPS_PASSWORD="xxx"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">EMAIL_TO=<a href="mailto:xxx@xxx.xxx" rel="noreferrer" target="_blank">xxx@xxx.xxx</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">EMAIL_FROM=<a href="mailto:xxx@xxx.xxx" rel="noreferrer" target="_blank">xxx@xxx.xxx</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">STATUS=`upsc $UPS ups.status 2>&1 | grep -v '^Init SSL'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">CHARGE=`upsc $UPS battery.charge 2>&1 | grep -v '^Init SSL'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">CHMSG="[$STATUS]:$CHARGE%"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">MSG="dummy message - $1"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">case $1 in<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> online) MSG="$UPS, $CHMSG - On line power - power supply had been restored." ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> onbatt) MSG="$UPS, $CHMSG - On battery - power failure - save your work!" ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> lowbatt) MSG="$UPS, $CHMSG - Battery is low - shutdown now!" ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> beeperoff)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> logger -i -t upsshed-cmd "Turning off Beeper"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> STATUS=`upsc ${UPS} ups.beeper.status 2>&1 | grep -v '^Init SSL'`<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> if [[ "${STATUS}" == "enabled" ]] ; then<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> upscmd -u ${UPS_USERNAME} -p ${UPS_PASSWORD} ${UPS} beeper.toggle<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> fi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> shutdown-ws2019)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> MSG="$UPS, $CHMSG - Stopping WS2019"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> logger -i -t upsshed-cmd "Stopping WS2019"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> setsid /usr/local/bin/shutdown-ws2019 &<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> upsgone)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> logger -i -t upssched-cmd "The UPS has been gone for awhile"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> heartbeat-failure-timer)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> MSG="NUT heart beat fails. $CHMSG"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> # Email<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> MSG1="Hello, upssched-cmd reports NUT heartbeat has failed."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> MSG2="Current status: $CHMSG \n\n$0 $1"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> MSG3="\n\n$( ps -elf | grep -E 'ups[dms]|nut' )"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> echo -e "$MSG1 $MSG2 $MSG3" | /usr/bin/mail -r "$EMAIL_FROM" \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> -s "NUT heart beat fails. Currently $CHMSG" "$EMAIL_TO" ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> *)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> logger -i -t upssched-cmd "Unrecognized command: $1"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"> ;;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">esac<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">logger -i -t upssched-cmd $MSG<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">wall "$MSG"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">This is normal ups activity in daemon log from the previous version:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:10:50 fricka upssched[16007]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:10:50 fricka upssched[16007]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:20:50 fricka upssched[16007]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:20:50 fricka upssched[16007]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:30:55 fricka upssched[16007]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:30:55 fricka upssched[16007]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:40:55 fricka upssched[16007]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:40:55 fricka upssched[16007]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:50:55 fricka upssched[16007]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 10 23:50:55 fricka upssched[16007]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">This is daemon log from the new version, first two lines are the last lines of the startup messages. One same upssched process (124835) running with 100% cpu from 21:07:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:02:40 fricka dummy-ups[121803]: sock_connect: enabling asynchronous mode (auto)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:02:41 fricka usbhid-ups[121820]: sock_connect: enabling asynchronous mode (auto)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:07:40 fricka upssched[124835]: Timer daemon started<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:07:40 fricka upssched[124835]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:07:40 fricka nut-monitor[124832]: Network UPS Tools upsmon 2.8.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:12:40 fricka nut-monitor[128005]: Network UPS Tools upsmon 2.8.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:17:40 fricka upssched[124835]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:17:40 fricka upssched[124835]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:17:40 fricka nut-monitor[131233]: Network UPS Tools upsmon 2.8.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:22:45 fricka nut-monitor[134330]: Network UPS Tools upsmon 2.8.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:27:45 fricka upssched[124835]: Cancelling timer: heartbeat-failure-timer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:27:45 fricka upssched[124835]: New timer: heartbeat-failure-timer (660 seconds)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Jun 11 21:27:45 fricka nut-monitor[137838]: Network UPS Tools upsmon 2.8.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">---------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" rel="noreferrer" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>