APC UPS for Home and Office Forum
Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
I'm trying to set up a CS-650 to protect a CentOS 5.6 server - I've manged to install apcupsd on CentOS and it seems to be communicating with the UPS ok. However, apcaccess gives the following:
APC : 001,046,1190
DATE : 2011-05-25 18:52:11 +0100
HOSTNAME : .co.uk
VERSION : 3.14.8 (16 January 2010) redhat
UPSNAME : APC650
CABLE : USB Cable
MODEL : Back-UPS CS 650
UPSMODE : Stand Alone
STARTTIME: 2011-05-25 18:35:52 +0100
STATUS : ONBATT
LINEV : 244.0 Volts
LOADPCT : 29.0 Percent Load Capacity
BCHARGE : 095.0 Percent
TIMELEFT : 1.6 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 1 Minutes
MAXTIME : 0 Seconds
OUTPUTV : 230.0 Volts
SENSE : Low
DWAKE : 000 Seconds
DSHUTD : 180 Seconds
LOTRANS : 160.0 Volts
HITRANS : 278.0 Volts
RETPCT : 000.0 Percent
ITEMP : 29.2 C Internal
ALARMDEL : Always
BATTV : 13.6 Volts
LINEFREQ : 50.0 Hz
LASTXFER : Unacceptable line voltage changes
NUMXFERS : 187
XONBATT : 2011-05-25 18:52:12 +0100
TONBATT : 0 seconds
CUMONBATT: 833 seconds
XOFFBATT : 2011-05-25 18:52:11 +0100
LASTSTEST: 2011-05-25 18:40:39 +0100
SELFTEST : NO
STESTI : None
STATFLAG : 0x07040010 Status Flag
SERIALNO : 4B1043P26484
BATTDATE : 2010-10-22
NOMOUTV : 230 Volts
NOMINV : 230 Volts
NOMBATTV : 12.0 Volts
NOMPOWER : 400 Watts
FIRMWARE : 817.v7 .I USB FW:v7
APCMODEL : Back-UPS CS 650
END APC : 2011-05-25 18:52:12 +0100
The STATUS is incorrect - the UPS is on AC power (this was causing problems before where it would shutdown on AC power when the battery was lower). If I look in the logs I can see it is switching from power failure to power back up every ~5 seconds:
2011-05-25 18:54:19 +0100 Power is back. UPS running on mains.
2011-05-25 18:54:20 +0100 Power failure.
2011-05-25 18:54:24 +0100 Power is back. UPS running on mains.
2011-05-25 18:54:25 +0100 Power failure.
2011-05-25 18:54:29 +0100 Power is back. UPS running on mains.
2011-05-25 18:54:30 +0100 Power failure.
2011-05-25 18:54:34 +0100 Power is back. UPS running on mains.
2011-05-25 18:54:35 +0100 Power failure.
2011-05-25 18:54:39 +0100 Power is back. UPS running on mains.
2011-05-25 18:54:40 +0100 Power failure.
Has anyone got any idea what the problem could be?
Thanks in advance,E
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Hi,
The UPS itself seems ok - it just seems to be the logs / status report - both coming from apcupsd I guess.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
No problem - thanks for your time anyway, really appreciate the help.
I'll post back if I find anything up with apcupsd
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
i have one clarification - is it only in the log or is the UPS actually clicking and switching to battery operation as well?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
ahh ok. i am not that familiar in troubleshooting apcupsd (since its not made by APC) so you may want to check with their support system to make sure there isnt an issue with this OS or anything if the UPS is not actually switching to battery. from googling, i thought we might also see a UPS running on batteries event too if the UPS thought it was on battery. i spent a little time trying to look through apcupsd support website/release notes and googling but i could not find anything concrete for you 😞
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Manged to solve my problem using the instructions here:
Link: [http://osdir.com/ml/sysutils.apcupsd.user/2007-02/msg00028.html]
From what I can work out the UPS supplies feature reports and input reports? The apcupsd prefers the feature reports over the input reports - mine seemed to have some issues with the feature reports, yet input reports were ok? Rebuilding apcupsd using the instructions above solved the problem.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
glad to hear and thanks for posting the link to the fix.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Hi!
I have the exact same problem here with the same CentOS version. Unfortunately, the link you mentionend is offline. Would you be so kind to tell me what you did to resolve the problem?
Best regards
Johann
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
The link appears to be back up, but basically:
Download the apcupsd source code
Edit the src/drivers/usb/linux/linux-usb.c file - "At the very top of the "pusb_ups_get_capabilities"
function, around line 687, there is an array called "rtype[]" which
lists HID_REPORT_TYPE_FEATURE and HID_REPORT_TYPE_INPUT. Just swap the
order of those two constants so INPUT comes first." <-- taken from the page I linked to
Then configure & make apcupsd
Hope this helps.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 06:00 AM . Last Modified: 2024-03-21 05:51 AM
Hi,
The UPS itself seems ok - it just seems to be the logs / status report - both coming from apcupsd I guess.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.