Hello Steve,
Please do not take offence at Charlie's comment. It is short and to the point (an occupational hazard for most developpers) chiefly because of the need to manage the significant workload carried out on a voluntary basis by the Development Team in general, and Charlie in particular. The SME server has been designed to work "out of the box" unconditionally. If something does not work, i.e. the interface to a UPS as it appears to be the case here, something is potentially amiss and need to be investigated. The best place to carry this sort of investigation for the Development Team is at Bugzilla, not in the Forum. Filling a Bug Report will not only identify the problem you are now experiencing, it will also allow some documentation to take place in the Wikis if applicable. Hope this helps.
Hi burnat
I fully understand the purpose of bugzilla, and also that this whole project is run freely, and I understand all the main guys involvement & contribution towards it. But, I never said there's a problem with sme, if you re-read my 1st post. I'm either doing something wrong, or my UPS is not working properly (which I'm starting to believe right now). If I had a code / product / sme problem, I would have filled it in bugzilla, but since I felt it's something that someone else with either a similar UPS, or knowledge of NUT could help me. I could have used the wrong drivers, or missed a step somewhere. That's not a bug.
And my experience from the bugzilla stuff wasn't very good. It's only being used by people who have serious problems and want a fix, and it can only be fixed if the team feels like it / know it can be fixed / have time for it / there's enoug interest, etc. But on the forums, my question have more exposure, and someone not on the team might have a solution for me.
william_syd:
I have look through that nutty info page, and it didn't help much. I also searched & read through every forum post with USB & UPS in it (I skipped those relating to other USB devices like HDD's)
Here's the output of those commands:
[root@sme ~]# config show nut
nut=service
Device=/dev/hiddev0
MasterPass=794420176403932
Model=usbhid
SlavePass=751336777253836
status=enabled
[root@sme ~]# cat /etc/ups/ups.conf
Broadcast message from nut (Tue Feb 5 10:09:47 2008):
UPS UPS@localhost is unavailable
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
[UPS]
driver = usbhid
port = /dev/hiddev0
Here's some recent output from /var/log/messages:
Feb 5 10:08:08 sme last message repeated 4 times
Feb 5 10:08:09 sme upsmon[7046]: Signal 15: exiting
Feb 5 10:08:09 sme upsd[7041]: Client upsmaster@127.0.0.1 logged out
Feb 5 10:08:09 sme upsmon[7045]: upsmon parent: read
Feb 5 10:08:09 sme ups: upsmon shutdown succeeded
Feb 5 10:08:09 sme upsd[7041]: Signal 15: exiting
Feb 5 10:08:09 sme ups: upsd shutdown succeeded
Feb 5 10:08:09 sme upsdrvctl: Network UPS Tools - UPS driver controller 2.2.0-
Feb 5 10:08:09 sme upsdrvctl: Can't start /sbin/usbhid: No such file or directory
Feb 5 10:08:09 sme ups: upsdrvctl startup failed
Feb 5 10:08:09 sme upsd[7105]: listening on 0.0.0.0 port 3493
Feb 5 10:08:09 sme upsd[7105]: Can't connect to UPS [UPS] (usbhid-UPS): No such file or directory
Feb 5 10:08:09 sme upsd[7106]: Startup successful
Feb 5 10:08:09 sme upsd: listening on 0.0.0.0 port 3493
Feb 5 10:08:09 sme upsd: Can't connect to UPS [UPS] (usbhid-UPS): No such file or directory
Feb 5 10:08:09 sme ups: upsd startup succeeded
Feb 5 10:08:09 sme upsmon[7110]: Startup successful
Feb 5 10:08:09 sme upsmon: UPS: UPS@localhost (master) (power value 1)
Feb 5 10:08:09 sme upsmon: Using power down flag file /etc/killpower
Feb 5 10:08:09 sme upsmon:
Feb 5 10:08:09 sme ups: upsmon startup succeeded
Feb 5 10:08:09 sme upsd[7106]: Connection from 127.0.0.1
Feb 5 10:08:09 sme upsd[7106]: Client upsmaster@127.0.0.1 logged into UPS [UPS]
Feb 5 10:08:09 sme upsmon[7111]: Poll UPS [UPS@localhost] failed - Driver not connected
Feb 5 10:08:09 sme upsmon[7111]: Communications with UPS UPS@localhost lost
Feb 5 10:08:09 sme wall[7115]: wall: user nut broadcasted 1 lines (44 chars)
Broadcast message from nut (Tue Feb 5 10:08:14 2008):
UPS UPS@localhost is unavailable
Feb 5 10:08:14 sme upsmon[7111]: Poll UPS [UPS@localhost] failed - Driver not connected
Feb 5 10:08:14 sme upsmon[7111]: UPS UPS@localhost is unavailable
Feb 5 10:08:14 sme wall[7133]: wall: user nut broadcasted 1 lines (34 chars)