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

Pratt Chris Chris.Pratt at comptel.com
Tue Nov 13 14:20:39 UTC 2012

Hi Arnaud, and apologies for the delay in getting back to you.

For a totally separate reason I’d intended to install NUT on a new VMware image so, in view of your comments and to avoid confusion at a later date with a hybrid installation, I decided to install on the new image from the tarball and set up the start/stop script manually.

I unpacked the tarball, applied the patch you sent me and then ran the configure/make/make install sequence.  The driver started OK as it did on the old image so I copied the /etc/init.d/ups script installed by the rpm package from the old image to the new one and edited the paths.  I then ran chkconfig to set it up as a service.  I haven’t fully tested that yet as I haven’t completed the config but I see no reason why it won’t work.

Many thanks for your help with this.



Chris Pratt
Development Infrastructure Manager
T: +44 118 929 4176 | M: +44 7979 854 307 | F: +44 118 929 4001

From: Arnaud Quette [mailto:aquette.dev at gmail.com]
Sent: 01 November 2012 11:50
To: Pratt Chris
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] NUT v2.6.4 with HP AF401A won't start

2012/10/31 Pratt Chris <Chris.Pratt at comptel.com<mailto: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:

[root at ups-monitor bin]# rpm -q nut
[root at ups-monitor bin]# which upsdrvctl
[root at ups-monitor bin]# pwd
[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 (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...

Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr

Disclaimer: This message and any attachments thereto are intended solely for the addressed recipient(s) and may contain confidential information.
If you are not the intended recipient, please notify the sender by reply e-mail and delete the e-mail (including any attachments thereto) without producing, distributing or retaining any copies thereof. Any review, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121113/1cb7c7f8/attachment.html>

More information about the Nut-upsuser mailing list