[Nut-upsuser] nut on pclos-2010.7

Gene Heskett gene.heskett at gmail.com
Sat Nov 6 17:47:29 UTC 2010


On Saturday, November 06, 2010 01:04:39 pm Gene Heskett did opine:

> On Saturday, November 06, 2010 11:57:11 am Charles Lepple did opine:
> > On Nov 5, 2010, at 2:42 PM, Gene Heskett wrote:
> > > libusb-devel I just installed.  Unforch, that didn't get me
> > > the usb stuff. libusb is actually libusb1.0 here.
> > 
> > If you do need USB support, check to see if your distribution has
> > libusb-compat or something similar. The 1.0 version of libusb has a
> > compatibility layer that lets programs like NUT use the 0.1 API with
> > the 1.0 library installed. Not all distributions package that up the
> > same way, though.
> 
> It turns out the dynamic version of the -devel stuff wasn't enough, I
> just installed the static versions, then chowned the whole trunk tree
> to me, and it built as me.  Synaptic has now removed the 2.4.1 rpms, so
> now a root make install...  And that seemed successful.  Now, I did
> have it working on mandriva back in the spring, and that drive hasn't
> been re-assigned, so if I can find all the stuff on that drive and move
> it, maybe it will work.  But first use synaptic to install the K
> interface.  Humm, that was a kde3 piece, and seems not to have made the
> trip to kde4.5.x yet, darn.
> 
> Anyway its installed, now to find the old configs.  Thanks Charles.
> 
> One thing that keeps biting me, this list has no List-Header:, so when I
> click on reply to mail-list, I get no To: line and have to copy paste
> the recipients, you and the list.  Is this intentional?


PS, progress of sorts:
I have followed along on the web page's install & configure, editing to fix 
changes in the syntax according to the warnings returned, untill I get to 
the upsd start(which has to be done as root), and its returning this:
[root at coyote etc]# /usr/local/ups/sbin/upsd
Network UPS Tools upsd 2.4.3-2672
/usr/local/ups/etc/upsd.conf is world readable
upsd.conf: invalid directive LISTEN: all
listening on localhost port 3493
getaddrinfo: Servname not supported for ai_socktype

Now I'd assume the chmod 0640 applies to everything, and that the whole 
REJECT line is a no-op now.

That now gets me this:
[root at coyote etc]# /usr/local/ups/sbin/upsd
Network UPS Tools upsd 2.4.3-2672
listening on localhost port 3493
getaddrinfo: Servname not supported for ai_socktype
[root at coyote etc]# /usr/local/ups/sbin/upsd -c stop
Network UPS Tools upsd 2.4.3-2672
fopen /var/state/ups/upsd.pid: No such file or directory

So obviously it is not running, however, when I used the web page sample 
'ACL' etc, it warned but ran ok (I think):

[root at coyote etc]# /usr/local/ups/sbin/upsd
Network UPS Tools upsd 2.4.3-2672
ACL in upsd.conf is no longer supported - switch to LISTEN
ACL in upsd.conf is no longer supported - switch to LISTEN
ACCEPT in upsd.conf is no longer supported - switch to LISTEN
REJECT in upsd.conf is no longer supported - switch to LISTEN
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Connected to UPS [coyotes-ups]: usbhid-ups-coyotes-ups

And:

[root at coyote etc]# /usr/local/ups/bin/upsc coyotes-ups at localhost ups.status
OL CHRG

Then the whole list:

[root at coyote etc]# /usr/local/ups/bin/upsc coyotes-ups at localhost
battery.charge: 100
battery.charge.low: 30
battery.charge.warning: 30
battery.runtime: 120
battery.type: PbAc
battery.voltage: 27.8
battery.voltage.nominal: 24
device.mfr: Belkin 
device.model: Belkin UPS
device.serial:             
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/hidraw2
driver.version: 2.4.3-2672
driver.version.data: Belkin HID 0.12
driver.version.internal: 0.35
input.frequency: 60.0
input.frequency.nominal: 60
input.transfer.high: 140
input.transfer.high.max: 144
input.transfer.high.min: 140
input.transfer.low: 88
input.transfer.low.max: 88
input.transfer.low.min: 84
input.voltage: 125.9
input.voltage.nominal: 120
output.frequency: 60.0
output.voltage: 126.5
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 1
ups.load: 30
ups.mfr: Belkin 
ups.model: Belkin UPS
ups.power.nominal: 1500
ups.productid: 0751
ups.serial:             
ups.status: OL CHRG
ups.test.result: Done and passed
ups.timer.shutdown: 0
ups.timer.start: 0
ups.type: offline
ups.vendorid: 050d

So, whats next, reload the web page in a few hours? Or just ignore the 
warnings? ;-)

Well, I thought I was fixing upsmon.conf correctly, but:
[root at coyote etc]# /usr/local/ups/sbin/upsmon
Network UPS Tools upsmon 2.4.3-2672
Unable to use old-style MONITOR line without a username
Convert it and add a username to upsd.users - see the documentation
Fatal error: unusable configuration

Sigh...

Thanks Charles (no CC this time, just the list)

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Some of the things that live the longest in peoples' memories never
really happened.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
You will have a long and unpleasant discussion with your supervisor.



More information about the Nut-upsuser mailing list