Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apcupsd & apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Wed May 14, 2003 3:31 pm    Post subject: apcupsd & apache Reply with quote

I have emerged apcupsd on a server to interface a smart-ups 700

I have basically two problems:

First, apcupsd seems to run fine, but apcaccess only gives basic information, but not things like the battery-status, voltage, etc.

Second, I would like to use the Web-interface in our network to see the status of the ups.
Emerge apcupsd seems to install an addon-module for apache.
But I don't know how to configure an addon-module with apache, nor do I know how to access this module, well what kind of address I have to use (ala http://server-ip/xy)

Maybe somebody runs apcupsd and could help me out?
Back to top
View user's profile Send private message
VXO
n00b
n00b


Joined: 28 Apr 2003
Posts: 12

PostPosted: Sat May 17, 2003 9:48 pm    Post subject: Reply with quote

I'm having the same issues with apcupsd... version 3.10.5. The apctest program (which wasn't included in the ebuild, so I built it from source) sees that the UPS is there, and I can start/stop the runtime calibration from it. However, when it goes to poll the UPS for its supported commands, it just sits there and does nothing.

/var/log/apcupsd.events just shows that it's starting sucessfully.

in apcupsd.conf, I have the ups type set to apcsmart, cable type smart, on a SmartUPS 600. I'm using this cable.
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Wed May 21, 2003 12:06 pm    Post subject: Reply with quote

VXO wrote:

in apcupsd.conf, I have the ups type set to apcsmart, cable type smart, on a SmartUPS 600. I'm using this cable.


I have also set the type to apcsmart and as cable, I have the original "940-0024C".

Have you by chance tried an earlier version of apcupsd?
Back to top
View user's profile Send private message
wolf31o2
Retired Dev
Retired Dev


Joined: 31 Jan 2003
Posts: 628
Location: Mountain View, CA

PostPosted: Wed May 21, 2003 6:46 pm    Post subject: Reply with quote

I am running apcupsd on several machines on my network. I found that apcupsd works much better if you specify the exact cable you are using. Do not just put smart, put 940-0024C or whatever type of cable you actually have. The apache module sets up an /apcupsd virtual directory. You can view the status of any UPS that apcupsd is monitoring (you can do multiples, look in the /etc/apcupsd/hosts.conf file) by going to http://127.0.0.1/apcupsd/multimon.cgi in a web browser. The files there are all CGI scripts, so you could easily modify them to work with any web server.
Back to top
View user's profile Send private message
st. anger
Apprentice
Apprentice


Joined: 30 Oct 2002
Posts: 273

PostPosted: Wed May 21, 2003 7:23 pm    Post subject: Reply with quote

ive been using apcupsd for a while, but i never knew it had module for apache. how can i enable it? i read the man page for apcupsd and saw a reference to apcnetd, but that is not on my system. is that what i need?
Back to top
View user's profile Send private message
Black
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 158
Location: Québec, Canada

PostPosted: Mon Nov 03, 2003 1:27 am    Post subject: Re: apcupsd & apache Reply with quote

Wow, seems like I feel like resurecting an old thread! :)

soulwarrior wrote:
First, apcupsd seems to run fine, but apcaccess only gives basic information, but not things like the battery-status, voltage, etc.


I had the same problem with a SmartUPS 420! I thought I had to specify the right cable with the UPSCABLE setting, but a little testing revealed that it doesn't matter in my case. However, I had to set UPSTYPE to the old "smartups", not the new "apcsmart", and now it works.

So, here are the 2 relevent settings in my /etc/apcupsd.conf file:
Code:
UPSCABLE 940-0024C
UPSTYPE smartups


I kept the full cable description anyway, even if it doesn't make a difference in my case.

I am currently using apcupsd 3.10.6 (currently masked), but I guess it's the same with 3.10.5 .
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Wed Nov 19, 2003 5:58 pm    Post subject: Re: apcupsd & apache Reply with quote

Black wrote:
Wow, seems like I feel like resurecting an old thread! :)


Hey, thanks your setting did it, now I can see all the parameters :D
Back to top
View user's profile Send private message
barrct
n00b
n00b


Joined: 13 Apr 2004
Posts: 63
Location: Naples, FL

PostPosted: Thu Jun 24, 2004 1:49 pm    Post subject: Re: apcupsd & apache Reply with quote

Black wrote:
I had the same problem with a SmartUPS 420! I thought I had to specify the right cable with the UPSCABLE setting, but a little testing revealed that it doesn't matter in my case. However, I had to set UPSTYPE to the old "smartups", not the new "apcsmart", and now it works.

So, here are the 2 relevent settings in my /etc/apcupsd.conf file:
Code:
UPSCABLE 940-0024C
UPSTYPE smartups


Close here, but I've got an SU2200RMXLNET. Although I can't get any cable to work with any setting in smart mode. I can get dumb mode to tell me the battery is there, but that's it.

I can hook up a cable to a laptop and use Powerchute to view everysetting fine, but the same cable for Linux it doesn't work.

I've got a SUN E4500 and am useing a DB9-DB25 converter to get to /dev/ttyS0 useing the latest 3.10.13.
Back to top
View user's profile Send private message
leonarp
n00b
n00b


Joined: 22 Mar 2004
Posts: 35
Location: Kansas

PostPosted: Tue Feb 15, 2005 8:58 pm    Post subject: Reply with quote

Did you get apcupsd on your E4500 using portage and the ~sparc keyword or did you download it from the apcupsd website?
Back to top
View user's profile Send private message
leonarp
n00b
n00b


Joined: 22 Mar 2004
Posts: 35
Location: Kansas

PostPosted: Tue Feb 15, 2005 9:06 pm    Post subject: Reply with quote

Did you get apcupsd on your E4500 using portage and the ~sparc keyword or did you download it from the apcupsd website?
Back to top
View user's profile Send private message
barrct
n00b
n00b


Joined: 13 Apr 2004
Posts: 63
Location: Naples, FL

PostPosted: Wed Feb 16, 2005 11:29 pm    Post subject: Reply with quote

I emerged the masked package.
Actually, my problem was quite stupid, I still had getty running on the port still. I just tuned it off from that port and everything was perfectly happy.

What happened was that apcupsd couldn't connect to the port because getty was already connected it.
_________________
Linux William 2.4.24 #3 SMP Wed Apr 28 19:28:29 EDT 2004 sparc64 sun4u TI UltraSparc II (BlackBird) GNU/Linux
cpu : TI UltraSparc II (BlackBird)
ncpus probed : 8
http://www.barrtechnology.com
http://chris.barrtechnology.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum