[Nut-upsuser] NUT v2.6.4 with HP AF401A won't start

Arnaud Quette aquette.dev at gmail.com
Thu Nov 1 11:49:43 UTC 2012


2012/10/31 Pratt Chris <Chris.Pratt at comptel.com>

>  Hi Arnaud.****
>
> **
>

Hi Chris,


> I think you’ve cracked it.  The following terminal output shows the
> package and also shows that when I start it from /usr/local/ups/bin it
> doesn’t crash.****
>

nice, I've committed the patch to the trunk (NUT development version),
r3769:
http://trac.networkupstools.org/projects/nut/changeset/3769


> **
>
> [root at ups-monitor bin]# rpm -q nut****
>
> nut-2.6.4-1.el6.x86_64****
>
> [root at ups-monitor bin]# which upsdrvctl****
>
> /sbin/upsdrvctl****
>
> [root at ups-monitor bin]# pwd****
>
> /usr/local/ups/bin****
>
> [root at ups-monitor bin]# ./upsdrvctl start****
>
> Network UPS Tools - UPS driver controller 2.6.5****
>
> Network UPS Tools - Generic SNMP UPS driver 0.68 (2.6.5)****
>
> Detected HP R12000/3UPS on host 192.168.0.89 (mib: cpqpower 1.5)****
>
> [UPS-HP01] snmp_ups_walk: data stale for ups.L1.realpower****
>
> [UPS-HP01] snmp_ups_walk: data stale for ups.L2.realpower****
>
> [UPS-HP01] snmp_ups_walk: data stale for ups.L3.realpower****
>
> [root at ups-monitor bin]#****
>
> ** **
>
> I’ve uninstalled the package and re-run make install just to be sure and
> it starts up fine with upsdrvctl start, with the following message in
> /var/log/messages.****
>
> Oct 30 09:20:25 ups-monitor snmp-ups[32252]: Startup successful****
>
> ** **
>
> Now it’s on to finishing the configuration and setting up the clients.****
>

beware of 1 thing: the main difference with a source install, as you did
lastly, and a native package (RPM) is the system/shutdown integration.

the init.d / systemd script will look for binaries (upsd, drivers, ...), in
the known path, not /usr/local/ups/{bin,sbin}...

so you may want to keep your original rpm and overwrite snmp-ups with the
new one.
thus, uninstall first the current install and reconfigure using the
following:

./configure --program-prefix= --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info --with-all --with-nss
--with-libltdl --without-hal --with-cgi --datadir=/usr/share/nut
--with-user=nut --with-group=dialout --with-statepath=/var/run/nut
--with-pidpath=/var/run/nut --with-altpidpath=/var/run/nut
--sysconfdir=/etc/ups --with-cgipath=/var/www/nut-cgi-bin
--with-drvpath=/sbin --with-systemdsystemunitdir=/usr/lib/systemd/system
--disable-static --with-udev-dir=/lib/udev

the above is a trimmed version of the one provided by Michal Hlavinka.
but you may want or need to trim it a bit more...

cheers,
Arnaud
-- 
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121101/4ec23034/attachment-0001.html>


More information about the Nut-upsuser mailing list