<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>upssched: read confirmation failed</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>I&nbsp;had 
upssched call the looping script, and background the process (via '&amp;'). This 
seems to have resolved the problem, and eliminate the delay I was 
experiencing</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=516095116-21072005><FONT face=Arial 
color=#0000ff size=2>-Rob</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> 
  nut-upsuser-bounces@lists.alioth.debian.org 
  [mailto:nut-upsuser-bounces@lists.alioth.debian.org] <B>On Behalf Of </B>Dege, 
  Robert C.<BR><B>Sent:</B> Thursday, July 21, 2005 11:04 AM<BR><B>To:</B> 
  nut-upsuser@lists.alioth.debian.org<BR><B>Subject:</B> [Nut-upsuser] upssched: 
  read confirmation failed<BR></FONT><BR></DIV>
  <DIV></DIV><!-- Converted from text/rtf format --><BR>
  <P><FONT face=Arial size=2>When the UPS starts to run on Battery, upsmon 
  notifies upssched, and upssched runs an "onbatt script", which sends out an 
  alert every 15 seconds via wall.</FONT></P>
  <P><FONT face=Arial size=2>When the UPS is put back on line, upsmon 
  acknowledges this change (via WALL). However, upssched does not get notified 
  properly, so the onbatt script continues to send alerts. About 45 seconds 
  later, upssched acknowledges the UPS change, and disengages the onbatt 
  script.</FONT></P>
  <P><FONT face=Arial size=2>I checked syslog, and I found these upssched error 
  messages during that 45 second delay:</FONT> </P><BR>
  <P><FONT face=Arial size=2>Jul 21 10:23:55 simnet-alic upsmon[3917]: UPS 
  APC@localhost on battery</FONT> </P>
  <P><FONT face=Arial size=2>Jul 21 10:23:55 simnet-alic upssched[3925]: Timer 
  daemon started</FONT> <BR><FONT face=Arial size=2>Jul 21 10:23:55 simnet-alic 
  upssched[3925]: New timer: onbatt (5 seconds)</FONT> <BR><FONT face=Arial 
  size=2>Jul 21 10:24:00 simnet-alic upssched[3925]: Event: onbatt</FONT> </P>
  <P><FONT face=Arial size=2>Jul 21 10:24:50 simnet-alic upsmon[3917]: UPS 
  APC@localhost on line power</FONT> </P>
  <P><FONT face=Arial size=2>Jul 21 10:24:52 simnet-alic upssched[3948]: read 
  confirmation failed, trying again</FONT> <BR><FONT face=Arial size=2>Jul 21 
  10:25:22 simnet-alic last message repeated 15 times</FONT> </P>
  <P><FONT face=Arial size=2>Jul 21 10:25:22 simnet-alic upssched[3948]: 
  Executing command: onpower</FONT> </P><BR>
  <P><FONT face=Arial size=2>Does anyone know why I'm running into this 
  problem?</FONT> </P>
  <P><FONT face=Arial size=2>-Rob</FONT> </P></BLOCKQUOTE></BODY></HTML>