<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.12.3">
</HEAD>
<BODY>
Charles,<BR>
Thanks for that. <BR>
I think the duplicated startup was caused by me also editing /etc/sysconfig/ups as well as the NUT specific config files. I have removed the /etc/sysconfig changes and the messages file looks ok (comparatively!).<BR>
<BR>
<BR>
On Fri, 2008-08-22 at 08:20 -0400, Charles Lepple wrote:
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">On Aug 22, 2008, at 7:18 AM, Steve T wrote:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">This will sound a bit odd.</FONT><BR>
<FONT COLOR="#000000">I have a current server running with a UPS. I'm in the process of replacing that server with another and obviously want Nut to monitor the new server. The new/old servers are in different locations, so I don't have access to the UPS while configuring the replacement server.</FONT><BR>
<FONT COLOR="#000000">I think I have the config ok, but what errors would you expect to see? Typically I'm getting a 'driver not connected' type error in the /var/log/messages:</FONT>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">"driver not connected" is normal. However...</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BLOCKQUOTE TYPE=CITE>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsd[1308]: listening on 0.0.0.0 port 3493</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsd[1308]: Can't connect to UPS [belkin] (belkinunv-belkin): No such file or directory</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsd[1309]: Startup successful</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsmon[1312]: Startup successful</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsd[1309]: Client <A HREF="mailto:nutmon@127.0.0.1">nutmon@127.0.0.1</A> logged into UPS [belkin]</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsmon[1313]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsmon[1313]: Communications with UPS belkin@localhost lost</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:21 T300 upsmon[1313]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:21 T300 upsmon[1313]: UPS belkin@localhost is unavailable</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:26 T300 upsmon[1313]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:29 T300 upsd[1342]: not listening on 0.0.0.0 port 3493</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:29 T300 upsmon[1347]: Startup successful</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:29 T300 upsd[1309]: Client <A HREF="mailto:nutmon@127.0.0.1">nutmon@127.0.0.1</A> logged into UPS [belkin]</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:29 T300 upsmon[1348]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:29 T300 upsmon[1348]: Communications with UPS belkin@localhost lost</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:31 T300 upsmon[1313]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:34 T300 upsmon[1348]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:34 T300 upsmon[1348]: UPS belkin@localhost is unavailable</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:36 T300 upsmon[1313]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:39 T300 upsmon[1348]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B><BR>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:41 T300 upsmon[1313]: Poll UPS [belkin@localhost] failed - Driver not connected</FONT></TT></B>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">Having two copies of upsmon (1313 and 1348) logging messages about the same UPS is not expected, though.</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">Also note:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE TYPE=CITE>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:16 T300 upsd[1308]: listening on 0.0.0.0 port 3493</FONT></TT></B><BR>
</BLOCKQUOTE>
<FONT COLOR="#000000">[...]</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE TYPE=CITE>
<B><TT><FONT COLOR="#000000">Aug 19 18:07:29 T300 upsd[1342]: not listening on 0.0.0.0 port 3493</FONT></TT></B><BR>
</BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">The second copy of upsd can't bind to the same port as the first one, so you get the above error message.</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">-- </FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">Charles Lepple</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">clepple@gmail</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
</BODY>
</HTML>