I'm trying to install APCUPSD so that I can gracefully shutdown during a power outage. I just tried installing, however missing a bunch of dependencies. Wondering if anyone has installed it. I had installed it on CC 4.3 without issue.
Perhaps I need to install the dev environment first?
Perhaps I need to install the dev environment first?
In Hardware
Share this post:
Responses (39)
-
Accepted Answer
-
Accepted Answer
If I'm trying to find a package I generally do something like:
This will give me a clue if the package is available somewhere in the clearos repo's. I believe most packages in clearos-epel are OK to install but a few are not (things like amavis and openvpn). As soon as you install packages from clearos-epel you are making a relatively safe gamble but I'd try to avoid ever installing a clearos-epel package if it also exists in other clearos repos. I believe clearos-epel is not much more than a mirror of the main EPEL site for the v6 packages.yum list apcupsd* --enablerepo=*
-
Accepted Answer
Easy to answer this one: Did'nt have a clue it existed B)
How do I find info about clearos-epel, how to install them, differences between community and pro reg. epel's...? Quite a unknown world for me.. :silly:
Now I used the command
, and it worked nice. I have used apcupsd on all my 5.x installs, so I know there is a few tricks to do in the apcupsd.conf-file (in /etc/apcupsd), like KILLDELAY (if you want it to stay awake after shutdown of server, useful if you have other equipment that need power as long as possible), identify the UPS by name (very useful when you have several of them in the rack), and moreyum --enablerepo=clearos-epel,clearos-core install apcupsd
-
Accepted Answer
Why not just install it directly from clearos-epel. From memory configuration is pretty much automatic for USB devices and documentation is here. I did not have to do anything in particular for the UPS to shut down the server last week when the mains tripped and the battery ran out. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Can I suggest you try the apcupsd mailing list? Then if you get a solution or need any more information you post back here? I don't think I am able to help any more. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
maxwell wrote:
but when the program stops / var / run / apcupsd.pid the file disappears.
That is exactly as it is meant to:
Nick Howitt wrote:
When you start apcupsd it should create the file /var/run/apcupsd.pid, but it should also delete the file when it is stopped.
Not sure why you are getting the test did not complete message. You can google it but references point to a fix in about 2006. What version of apcupsd are you running? -
Accepted Answer
and I do not pogyatno here is that the test number two, I always crash bug:
1) Test kill UPS power
2) Perform self-test
3) Read last self-test result
4) View/Change battery date
5) View manufacturing date
6) View/Change alarm behavior
7) View/Change sensitivity
8) View/Change low transfer voltage
9) View/Change high transfer voltage
10) Perform battery calibration
11) Test alarm
12) View/Change self-test interval
Q) Quit
Select function number: 2
This test instructs the UPS to perform a self-test
operation and reports the result when the test completes.
Clearing previous self test result...CLEARED
Initiating self test...INITIATED
Waiting for test to complete...TEST DID NOT COMPLETE -
Accepted Answer
-
Accepted Answer
I'm not totally following this, but if "ps aux | grep apc" does not show your first line then apcupsd is not running. If the file /var/run/apcupsd.pid exists and apcupsd is not running, this will normally stop apcupsd from starting - it is normally a tool to stop you running a program more than once. When you start apcupsd it should create the file /var/run/apcupsd.pid, but it should also delete the file when it is stopped. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Hmm. If you are talking about apctest then option 2 for a self-test, then mine works. Attached is my apcupsd.conf (renamed to .txt so the forum allows me to attach it) [file name=apcupsd.txt size=12201]http://www.clearfoundation.com/media/kunena/attachments/legacy/files/apcupsd.txt[/file] -
Accepted Answer
properly installed apcupsd-3.14.8-1.el5.i386.rpm. but when I spend Perform self-test is now throws this message:
Clearing previous self test result ... CLEARED
Initiating self test ... INITIATED
Waiting for test to complete ... TEST DID NOT COMPLETE
write to the configuration apcupsd.сonf. I want to see may be something in the configuration. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Now Ive tried to setup the PowerChute. I say tried, because its not possible on my UPS. It does not support USB-connected devices, as most newer UPSs is.
Also APC hardly give any info on how to install/configure this, making it a quite hard time for me to install. The APCUPSD is far better documented, and for what I can see, does have excact the same functions as PowerChute. So for my case it is back in with APCUPSD :-) -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
This is a rather old post, but just had to answar.
If you have a APC ups why not use the APC software PowerChute Business Edition.
It have a linux rpm Agent with its own web interface, easy to manage and deteced my old smart UPS automaticly.
I had som problems with apcupsd that put my server in a reboot loop bacause of a faulty cable. :-)
They do not have server consolle so you need a windows computer, if you have more computers connected.
You can then install a client on alle other windows computers that you need smooth shutdown on. :-)
Realy nice web interface and gives alot of information, the server also have the posebility to shedule battery check, do runtime calibration, logs the power consuption and gives you a price estimate.....
Realy nice and free.
sigurdi -
Accepted Answer
Just got a new APC UPS in the house, and I can confirm that this metod described here, does work nicely. First install the "yum install net-snmp", download and install the newest apcups package, i used the apcupsd-3.14.8-1.el5.i386.rpm. It is possible to adjust alot of settings in the /etc/apcupsd/apcupsd.conf but standard settings seems to do a OK job.
Well, all this is dependent you have a USB based UPS (and possibly it must be from APC?), and it is 1 PC connected to 1 UPS. As soon as you have several PCs and/or several UPS, the setup is a bit more work...
When I powered the UPS it instantly went into overcurrent protection mode. I thought it was something wrong, a setting I had forgot, but no. I have too high current into my house! 253V. No good. This makes sense I have had some trouble with some computers and other electronic stuff in our house. Guess I have to call the electric company on monday... -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
I downloaded the latest version from apcupsd.org.
It said missing net-snmp.
So I went to net-snmp and got an RPM that when installed said it was missing tons. But I should have instead done a
yum install net-snmp
Will try when I get home.
I don't know why the ACPID is being suggested above--AFAIK that has nothing to do with this.
Am I wrong? I think that is for suspend/resume type stuff.
apcupsd and nut are for letting the ups tell the machine to shut down when the UPS is out of juice.
I like apcupsd because I have a large ups with several machines plugged into it. I can install apcupsd on all of them so that all machines can be shut down gracefully. -
Accepted Answer
I just tried installing it on a a fresh ClearOS and it worked fine - only asked for lm_sensors and net-snmp.
The version I tried was just one I had laying around - apcupsd-3.14.6-1.el5.i386.rpm
I know that version also works perfectly with CC5.0
I'm sure there is a newer rpm available as well that should work fine. -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »