<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4630.0">
<TITLE>Nut 2.0.1, net-snmp-5.1.2p2, APC SUA1000 with AP9606: repeated comm lost/established messages</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Courier New">Hello list members,</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">I am running NUT 2.0.1 on an OpenBSD 3.8 system, using the OpenBSD port for net-snmp-5.1.2p2. The UPS is connected via an AP9606 Web/SNMP card with current firmware, and the LAN. All goes well for a long time, usually more than one month. Then the system starts spitting messages about losing communications with the UPS. A second message about reconnecting follows immediately. The messages are sometimes coming at a fast rate, faster than the 300 seconds specified for NOCOMMWARNTIME in upsmon.conf. A reboot of the computer running NUT (the only computer running NUT) does not fix it, so I assume that there is something going on with the UPS or the UPS network card.</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">If this is not a known problem, I would be happy to do some guided sleuthing to track it down. However, I have no clue where to look.</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">Any pointers would be much appreciated.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">George</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">The system log messages look like this:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Jan 4 10:57:00 z9 upsd[12613]: Data for UPS [ap9606-srv] is stale - check driver</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Jan 4 10:57:02 z9 upsd[12613]: UPS [ap9606-srv] data is no longer stale</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Jan 4 10:59:02 z9 upsd[12613]: Data for UPS [ap9606-srv] is stale - check driver</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Jan 4 10:59:02 z9 upsd[12613]: UPS [ap9606-srv] data is no longer stale</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">The output from upsmon -D (with console messages interspersed) follows</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">/usr/local/ups/sbin >> ./upsmon -D </FONT>
<BR><FONT SIZE=2 FACE="Courier New">Network UPS Tools upsmon 2.0.1</FONT>
<BR><FONT SIZE=2 FACE="Courier New">UPS: ap9606-srv@localhost (slave) (power value 1)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Using power down flag file /etc/killpower</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Trying to connect to UPS [ap9606-srv@localhost]</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Logged into UPS ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (first time)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Poll UPS [ap9606-srv@localhost] failed - Data stale</FONT>
<BR><FONT SIZE=2 FACE="Courier New">do_notify: ntype 0x0005 (COMMBAD)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Communications with UPS ap9606-srv@localhost lost</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New">Broadcast Message from root@z9.z9.com </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> (/dev/ttyp0) at 10:39 ... </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New">Communications with UPS ap9606-srv@localhost lost </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New">do_notify: ntype 0x0004 (COMMOK)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Communications with UPS ap9606-srv@localhost established</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New">Broadcast Message from root@z9.z9.com </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> (/dev/ttyp0) at 10:40 ... </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New">Communications with UPS ap9606-srv@localhost established </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New">polling ups: ap9606-srv@localhost</FONT>
<BR><FONT SIZE=2 FACE="Courier New">get_var: ap9606-srv@localhost / status</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> status: [OL]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change)</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">^CSignal 2: exiting</FONT>
</P>
</BODY>
</HTML>