Subject: Re: anyone get NUT (Network UPS Tools) 2.0.3 to work?
To: None <netbsd-help@NetBSD.org>
From: Jonathan A. Kollasch <jakllsch@kollasch.net>
List: netbsd-help
Date: 06/18/2006 14:39:59
--cDtQGJ/EJIRf/Cpq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Jun 18, 2006 at 10:57:59PM +0900, Henry Nelson wrote:
> I've been trying to get nut-2.0.3, http://www.networkupstools.org/,
> to work for the last 3 weeks or so. The driver and daemon appear
> to start up with no trouble, but upsmon cannot connect. I'm thinking
> of going back to nut-1.5.9 that worked like a charm unless someone
> out there has had more luck.
I've had good luck with the 2.0.3 from pkgsrc.
>=20
> What I get from `/usr/local/ups/sbin/upsmon -D` is:
> Trying to connect to UPS [su1000@localhost]
> UPS [su1000@localhost]: connect failed: Connection failure: Network is un=
reachable
> do_notify: ntype 0x0005 (COMMBAD)
> Communications with UPS su1000@localhost lost
> wall: /dev/ttyp0: Operation not permitted
> Trying to connect to UPS [su1000@localhost]
> UPS [su1000@localhost]: connect failed: Connection failure: Network is un=
reachable
> do_notify: ntype 0x0008 (NOCOMM)
> UPS su1000@localhost is unavailable
> wall: /dev/ttyp0: Operation not permitted
> Trying to connect to UPS [su1000@localhost]
> UPS [su1000@localhost]: connect failed: Connection failure: Network is un=
reachable
>=20
> I don't understand why "wall" gets involved in this, nor what "/dev/ttyp0"
> has to do with anything. Upsmon is set up to communicate on /dev/tty1.
NUT is a network-enabled UPS monitor, the client communicates with the
daemon over IP. The driver is what talks to /dev/tty??, and it uses
some sort of IPC method (I think it's a unix socket) to talk to upsd.
> Also, what is the "Network is unreachable" message all about? The network
That doesn't make sense, 127.0.0.0/8 should always be reachable via lo0.
> works fine, and in the first place upsmon should be connecting via the
> serial cable, not the network.
>=20
> Any help or ideas much appreciated.
>=20
> --=20
> henry nelson
> WWW_HOME=3Dhttp://yuba.ne.jp/~home/
--cDtQGJ/EJIRf/Cpq
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFElawPOjx1ye3hmokRAmLkAKCGn5RR0NmzJDAR2iNGSrKkBcy4cwCbBu3F
vei4qWF1ofC3B+NmF4Yl22w=
=RoOX
-----END PGP SIGNATURE-----
--cDtQGJ/EJIRf/Cpq--