View previous topic :: View next topic |
Author |
Message |
soulwarrior Guru
Joined: 21 Oct 2002 Posts: 331
|
Posted: Wed May 14, 2003 3:31 pm Post subject: apcupsd & apache |
|
|
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 |
|
|
VXO n00b
Joined: 28 Apr 2003 Posts: 12
|
Posted: Sat May 17, 2003 9:48 pm Post subject: |
|
|
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 |
|
|
soulwarrior Guru
Joined: 21 Oct 2002 Posts: 331
|
Posted: Wed May 21, 2003 12:06 pm Post subject: |
|
|
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 |
|
|
wolf31o2 Retired Dev
Joined: 31 Jan 2003 Posts: 628 Location: Mountain View, CA
|
Posted: Wed May 21, 2003 6:46 pm Post subject: |
|
|
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 |
|
|
st. anger Apprentice
Joined: 30 Oct 2002 Posts: 273
|
Posted: Wed May 21, 2003 7:23 pm Post subject: |
|
|
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 |
|
|
Black Apprentice
Joined: 10 Dec 2002 Posts: 158 Location: Québec, Canada
|
Posted: Mon Nov 03, 2003 1:27 am Post subject: Re: apcupsd & apache |
|
|
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 |
|
|
soulwarrior Guru
Joined: 21 Oct 2002 Posts: 331
|
Posted: Wed Nov 19, 2003 5:58 pm Post subject: Re: apcupsd & apache |
|
|
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 |
|
Back to top |
|
|
barrct n00b
Joined: 13 Apr 2004 Posts: 63 Location: Naples, FL
|
Posted: Thu Jun 24, 2004 1:49 pm Post subject: Re: apcupsd & apache |
|
|
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 |
|
|
leonarp n00b
Joined: 22 Mar 2004 Posts: 35 Location: Kansas
|
Posted: Tue Feb 15, 2005 8:58 pm Post subject: |
|
|
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 |
|
|
leonarp n00b
Joined: 22 Mar 2004 Posts: 35 Location: Kansas
|
Posted: Tue Feb 15, 2005 9:06 pm Post subject: |
|
|
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 |
|
|
barrct n00b
Joined: 13 Apr 2004 Posts: 63 Location: Naples, FL
|
Posted: Wed Feb 16, 2005 11:29 pm Post subject: |
|
|
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 |
|
|
|