search for: chmsg

Displaying 10 results from an estimated 10 matches for "chmsg".

2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
...psmaster" UPS_PASSWORD="xxx" EMAIL_TO=xxx at xxx.xxx<mailto:xxx at xxx.xxx> EMAIL_FROM=xxx at xxx.xxx<mailto:xxx at xxx.xxx> STATUS=`upsc $UPS ups.status 2>&1 | grep -v '^Init SSL'` CHARGE=`upsc $UPS battery.charge 2>&1 | grep -v '^Init SSL'` CHMSG="[$STATUS]:$CHARGE%" MSG="dummy message - $1" case $1 in online) MSG="$UPS, $CHMSG - On line power - power supply had been restored." ;; onbatt) MSG="$UPS, $CHMSG - On battery - power failure - save your work!" ;; lowbatt) MSG="$...
2023 Jun 10
1
Fopen upsmon.pid - no such file or directory - Nut 2.8.0 built from source
...ailure-timer AT ONBATT heartbeat at localhost START-TIMER heartbeat-failure-timer 660 ########### /etc/nut/upssched-cmd ########### logger -t upsched-cmd: "upsched-cmd running" UPS="ups at localhost" STATUS=$( upsc $UPS ups.status) CHARGE=$( upsc $UPS battery.charge) CHMSG="[$STATUS] : $CHARGE%" case $1 in online) logger -t upssched-cmd: "online" MSG1="Subject: UPS online" MSG2="\nCurrent status: $CHMSG $1" cat /etc/nut/online.txt >/tmp/message echo -e "$MSG2" >&g...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...er" UPS_PASSWORD="xxx" EMAIL_TO=xxx at xxx.xxx<mailto:xxx at xxx.xxx> EMAIL_FROM=xxx at xxx.xxx<mailto:xxx at xxx.xxx> STATUS=`upsc $UPS ups.status 2>&1 | grep -v '^Init SSL'` CHARGE=`upsc $UPS battery.charge 2>&1 | grep -v '^Init SSL'` CHMSG="[$STATUS]:$CHARGE%" MSG="dummy message - $1" case $1 in online) MSG="$UPS, $CHMSG - On line power - power supply had been restored." ;; onbatt) MSG="$UPS, $CHMSG - On battery - power failure - save your work!" ;; lowbatt) MSG=&...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...er" UPS_PASSWORD="xxx" EMAIL_TO=xxx at xxx.xxx<mailto:xxx at xxx.xxx> EMAIL_FROM=xxx at xxx.xxx<mailto:xxx at xxx.xxx> STATUS=`upsc $UPS ups.status 2>&1 | grep -v '^Init SSL'` CHARGE=`upsc $UPS battery.charge 2>&1 | grep -v '^Init SSL'` CHMSG="[$STATUS]:$CHARGE%" MSG="dummy message - $1" case $1 in online) MSG="$UPS, $CHMSG - On line power - power supply had been restored." ;; onbatt) MSG="$UPS, $CHMSG - On battery - power failure - save your work!" ;; lowbatt) MSG=&...
2024 Feb 23
0
Getting two notifications of nocomm-timer expired when USB cable is pulled from the UPS
...t; ?????????????? if [ test -f $FILE ]; then ?????????????? echo ?????????????? else ?????????????? rm -f $FILE1 ?????????????? rm -f $FILE2 ?????????????? rm -f $FILE3 ?????????????? rm -f $FILE4 ?????????????? rm -f $FILE5 ?????????????? echo >$FILE ?????????????? MSG2="\nCurrent status: $CHMSG?? $1" ?????????????? cat /etc/nut/online.txt >/tmp/message ?????????????? cat /tmp/message >>/etc/nut/logfile ?????????????? logger -t upssched-cmd: "online" ?????????????? echo -e "$MSG2" >> /tmp/message ?????????????? /usr/bin/msmtp -t dan.grostick at outlo...
2019 Jun 09
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...arge > my UPS every iteration? How about temporarily setting the battery.charge.low to some very high value: upsrw -s battery.charge.low=90 -u <user> -p sekret my-UPS I suggest adding something like the following lines to the top of upssched-cmd so that you can include the value of $CHMSG in all your messages. STATUS=$( upsc $UPS ups.status ) CHARGE=$( upsc $UPS battery.charge ) CHMSG="[$STATUS]:$CHARGE%" This will give you a clearer idea of what is happening to the UPS unit. Roger
2023 Jun 16
1
Dummy-ups cycles between online and onbatt every 5 minutes. (Nut 2.8.0)
...lure-timer AT ONBATT heartbeat at localhost START-TIMER heartbeat-failure-timer 660 ########### /etc/nut/upssched-cmd ########### logger -t upssched-cmd: "upssched-cmd running" UPS="ups at localhost" STATUS=$( upsc $UPS ups.status) CHARGE=$( upsc $UPS battery.charge) CHMSG="[$STATUS] : $CHARGE%" FILE="/tmp/u" FILE1="/tmp/w" FILE2="/tmp/x" FILE3="/tmp/y" FILE4="/tmp/z" case $1 in online) logger -t upssched-cmd: "online" if [[ -f $FILE ]]; then echo el...
2019 Jun 10
0
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...ration? > > How about temporarily setting the battery.charge.low to some very high value: > > upsrw -s battery.charge.low=90 -u <user> -p sekret my-UPS > > I suggest adding something like the following lines to the top of upssched-cmd so that you can include the value of $CHMSG in all your messages. > > STATUS=$( upsc $UPS ups.status ) > CHARGE=$( upsc $UPS battery.charge ) > CHMSG="[$STATUS]:$CHARGE%" > > This will give you a clearer idea of what is happening to the UPS unit. > > Roger_______________________________________________ &g...
2019 Jun 08
3
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
On Jun 8, 2019, at 4:16 PM, Roger Price wrote: > > 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. Joe, Roger has a good point - the SHUTDOWNCMD should work as long as the master system
2024 Feb 21
1
System keeps going into FSD mode after power on
...AY 5 upssched.conf excerpt: AT LOWBATT cyberpower at localhost START-TIMER shutdowncritical 30 AT ONLINE cyberpower at localhost CANCEL-TIMER shutdowncritical and then upssched-cmd basically does: case $1 in ... shutdowncritical) MSG="UPS battery critically low, forced shutdown. $CHMSG" /sbin/upsmon -c fsd ;; ... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20240221/562f136b/attachment.htm>