LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-13-2015, 07:30 PM   #1
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Rep: Reputation: Disabled
apcupsd on a proxmox (debian) server - cgi display doesnt output everything


Hello,

I havent posted here forever so I figured I'd ask for this issue. I have purchased a APC Smart-UPS 750 (SMT750RM2U) which is connected to the Debian server via USB.

I installed apcupsd (version 3.14.10) on the server using apt-get and used this config (removed all comments from the file):

Code:
UPSNAME SMT750RM2U
UPSCABLE smart
UPSTYPE usb
DEVICE
POLLTIME 60
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 1
BATTERYLEVEL 20
MINUTES 10
TIMEOUT 0
ANNOY 0
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 127.0.0.1
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
Code:
root@proxmox:~# uname -a
Linux proxmox 2.6.32-29-pve #1 SMP Thu Apr 24 10:03:02 CEST 2014 x86_64 GNU/Linux
The issue is that the cgi webinterface is missing some outputs from the UPS and the command "apcaccess status" is also missing some data. I have tried changing the cable and UPS types in apcupsd.conf to no avail.

Apparently apcupsd supports these Smart-UPS so I would expect to at least have the "UPS Load", "Utility voltage" and "Output voltage" but these are missing..

Code:
root@proxmox:/etc/apcupsd# apcaccess status
APC      : 001,027,0681
DATE     : 2015-01-13 20:23:25 -0500  
HOSTNAME : proxmox
VERSION  : 3.14.10 (13 September 2011) debian
UPSNAME  : SMT750RM2U
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2015-01-13 19:40:09 -0500  
MODEL    : Smart-UPS 750 
STATUS   : ONLINE 
BCHARGE  : 100.0 Percent
TIMELEFT :  24.0 Minutes
MBATTCHG : 20 Percent
MINTIMEL : 10 Minutes
MAXTIME  : 0 Seconds
ALARMDEL : 30 seconds
BATTV    : 27.3 Volts
NUMXFERS : 0
TONBATT  : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
STATFLAG : 0x07000008 Status Flag
MANDATE  : 2014-06-29
SERIALNO :   
NOMBATTV :  24.0 Volts
FIRMWARE : UPS 08.8 / ID=18
END APC  : 2015-01-13 20:23:58 -0500
Also apctest outputs "I don't know how to <bla bla bla> on your UPS or your UPS does not support <bla bla bla>" for most (if not all entries in the application's menu).

With missing data and apctest's messages I suspect the UPS is misconfigured or not supported, or worst, defective. I however ran the tests manually on the UPS and all went fine (a lot more data is available, self test works, all is reported as fine by the UPS, etc). I have also checked in the UPS manual to see if some initialization was required after purchase but no.

Seeking some advices!
Thanks!

EDIT: I have attached 2 screenshots of the webinterface showing some available data and some missing data. I have circled in purple the abnormal data.
Attached Thumbnails
Click image for larger version

Name:	snapshot1.jpg
Views:	187
Size:	192.0 KB
ID:	17350   Click image for larger version

Name:	snapshot2.jpg
Views:	123
Size:	196.5 KB
ID:	17351  

Last edited by lpallard; 01-15-2015 at 05:46 PM.
 
Old 01-13-2015, 09:26 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,813

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
The SMT models use a new communication protocol which support was included in version 3.14.11
according to the notes. Is it modbus over RS-232 but the link below had it working somewhat over USB like you. Hopefully my understanding of how they work is correct... There is some information in the documentation and release notes.

http://apcupsd-ups-control-software....es-td8087.html
 
Old 01-15-2015, 05:55 PM   #3
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Hmmmmmm I read the thread you posted and I guess I made the same mistake as the OP: buying a UPS that is not fully supported by apcupsd. But the good news is that ver 3.14.11 will (supposed) support RS232 via USB.

Now I see two choices:

1. Wait for 3.14.11 to make it to Debian's repos so when I update the proxmox node the package is updated
2. Uninstall 3.14.10 that is currently installed and manually compile/install 3.14.11 on the proxmox node.

Quite frankly this server is so critical I am somehow reluctant to install stuff the "not intended way"... I will ask the package maintainers if they expect 3.14.11 to be released as a deb package some time soon.

Will keep you posted!
Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Debian with 2 Nics and two public IP`s but one gateway - Proxmox-Related MrBrown997 Linux - Networking 2 12-05-2014 05:12 PM
Proxmox VE 1.5 virtualization server anyone using it?? tekhead2 Linux - Virtualization and Cloud 2 11-16-2010 03:19 AM
Can I apt-get apcupsd with --enable-cgi enables? mkenyon2 Linux - Software 1 12-27-2007 01:07 PM
apcupsd cannot find usb ups on Debian Sarge davelk Linux - Hardware 2 10-14-2006 11:28 AM
web server doesnt run cgi file laeeq38 Linux - Server 1 08-10-2006 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration