Koozali.org formerly Contribs.org

Apcupsd setup on 7.4

Re: Apcupsd setup on 7.4
« Reply #15 on: May 06, 2010, 04:02:25 AM »
We do nothing more than the 'howto' and it works.

Is the service running?  /etc/init.d/apcupsd status

A reboot will start the service, but /etc/init.d/apcupsd start is simpler

Re: Apcupsd setup on 7.4
« Reply #16 on: May 06, 2010, 04:04:05 AM »
.....
[root@hpserver ~]# [root@hpserver ~]# upsc UPS
-bash: [root@hpserver: command not found
[root@hpserver ~]# Error: Connection failure: Connection refused

Re: Apcupsd setup on 7.4
« Reply #17 on: May 06, 2010, 04:21:40 AM »
Is the service running?  /etc/init.d/apcupsd status

A reboot will start the service, but /etc/init.d/apcupsd start is simpler
Agreed. But it starts and then fails hence the status shows it as dead. when I do apctest it can't find the UPS.
/var/log/messages has:
Code: [Select]
apcupsd[9459]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.which I believe also means it failed because it could not find the UPS. So that seems to be the root cause.

Your upsc command failed so I am now guessing this is where the conflict lies (ie. mine works). A reboot may load the drivers differently. I can give this a shot when my system is a little more idle.

Do you get anything if you use (not that is a capital V):
Code: [Select]
/usr/sbin/upsd -Vupsc should be at:
Code: [Select]
/usr/bin/upsc
Thanks for looking into it. Further suggestions are also welcome.
SME since 2003

Re: Apcupsd setup on 7.4
« Reply #18 on: May 06, 2010, 04:28:17 AM »
[root@hpserver ~]# /usr/sbin/upsd -V
Network UPS Tools upsd 2.2.0-