<HTML>
<HEAD>
<TITLE>Setup of upssched on opensuse 11</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi all<BR>
<BR>
I’m not sure if this is the right place to post but I’m at wits end. So here we go.<BR>
<BR>
Running opensuse 11 with two ups that can be seen via web interface and post messages on the console. <BR>
<BR>
My issue lies in trying to get the upssched and upsmon to work correctly. Currently I have the exec flags denoted in the upsmon and “NOTIFYCMD /usr/sbin/upssched” is specified as the NOTIFYCMD flag as well since this is where is could fin the file. In upssched I have “CMDSCRIPT /usr/bin/upssched-cmd” for the script file. Finally upssched-cmd looks like the following. <BR>
<BR>
#! /bin/sh<BR>
#<BR>
# This script should be called by upssched via the CMDSCRIPT directive.<BR>
#<BR>
# Here is a quick example to show how to handle a bunch of possible<BR>
# timer names with the help of the case structure.<BR>
#<BR>
# This script may be replaced with another program without harm.<BR>
#<BR>
# The first argument passed to your CMDSCRIPT is the name of the timer<BR>
# from your AT lines.<BR>
<BR>
case $(1) in<BR>
onbattwarn)<BR>
WALL "UPS is down fix me please"<BR>
echo "TIM_UPS is on Battery for more then 10 seconds" \<BR>
| mailx -r "<a href="ups@fit.edu">ups@fit.edu</a>" -s"Tim_ups on Battery" <a href="tarbeite@fit.edu">tarbeite@fit.edu</a><BR>
;;<BR>
esac<BR>
<BR>
Also I am calling the time in upssched as “AT ONBATT * EXECUTE onbattwarn”<BR>
<BR>
Any idea as to why nothing works when I pull the cord on the UPS? I can provide more info if needed.<BR>
<BR>
Thanks<BR>
<BR>
~Tim</SPAN></FONT>
</BODY>
</HTML>