<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&#8217;m not sure if this is the right place to post but I&#8217;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 &#8220;NOTIFYCMD /usr/sbin/upssched&#8221; is specified as the NOTIFYCMD flag as well since this is where is could fin the file. In upssched I have &#8220;CMDSCRIPT /usr/bin/upssched-cmd&#8221; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onbattwarn)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WALL &quot;UPS is down fix me please&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;TIM_UPS is on Battery for more then 10 seconds&quot; \<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| mailx -r &quot;<a href="ups@fit.edu">ups@fit.edu</a>&quot; -s&quot;Tim_ups on Battery&quot; <a href="tarbeite@fit.edu">tarbeite@fit.edu</a><BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esac<BR>
<BR>
Also I am calling the time in upssched as &#8220;AT ONBATT * EXECUTE onbattwarn&#8221;<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>