<!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>
Yes - two upsmon and single upsd.<BR>
Just now a case of unplugging the old serber and plugging in the new and watching my whole world collapse ;-)!<BR>
<BR>
On Fri, 2008-08-22 at 09:24 -0400, Charles Lepple wrote:
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">Steve,</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">You're welcome.</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">I forgot to clarify that while you will have two upsmon processes running (one with root privileges, the other which listens on the network socket), only one should be logging.</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">On Aug 22, 2008, at 8:37 AM, Steve T wrote:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BLOCKQUOTE TYPE=CITE>
        <FONT COLOR="#000000">Charles,</FONT><BR>
        <FONT COLOR="#000000">Thanks for that. </FONT><BR>
        <FONT COLOR="#000000">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!).</FONT><BR>
        <BR>
        <BR>
        <FONT COLOR="#000000">On Fri, 2008-08-22 at 08:20 -0400, Charles Lepple wrote: </FONT><BR>
        <BLOCKQUOTE TYPE=CITE>
            <FONT COLOR="#000000">On Aug 22, 2008, at 7:18 AM, Steve T wrote: </FONT><BR>
            <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><BR>
            </BLOCKQUOTE>
            <BR>
            <BR>
            <FONT COLOR="#000000">&quot;driver not connected&quot; is normal. However... </FONT><BR>
            <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><FONT COLOR="#000000"> </FONT><BR>
            </BLOCKQUOTE>
            <BR>
            <BR>
            <FONT COLOR="#000000">Having two copies of upsmon (1313 and 1348) logging messages about the same UPS is not expected, though. </FONT><BR>
            <BR>
            <BR>
            <FONT COLOR="#000000">Also note: </FONT><BR>
            <BR>
            <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>
            </BLOCKQUOTE>
            <FONT COLOR="#000000">[...] </FONT><BR>
            <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>
            <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><BR>
            <BR>
            <FONT COLOR="#000000">--&nbsp; </FONT><BR>
            <FONT COLOR="#000000">Charles Lepple </FONT><BR>
            <FONT COLOR="#000000">clepple@gmail </FONT><BR>
            <BR>
            <BR>
            <BR>
            <BR>
            <BR>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
</BODY>
</HTML>