Re: [SLE] [9.3] apcupsd as netslave broken?



T. Ribbrock wrote:
Hi all,

I'm just after trying to get apcupsd to run in netslave mode on a SuSE
9.3 box. I was using the exact same configuration that I have working on a
SLOX 4.1 box, but apcupsd would just start and exit immediately upon
launch.

Running an strace against apcupsd (as I couldn't find any error messages
in the logs or using the -d switch) revealed that some subprocess exits
with a segmentation fault. I then tried a step-for-step configuration
changing one parameter in apcupsd.conf at a time until I finally
discovered that apcupsd would crash as soon as I chose "UPSMODE net". I
did not find any update for apcupsd for 9.3, nor did I manage to find the
bugtracker for 9.3 on Novell's site (yuck, yuck, yuck - the olde SuSE site
was much better...), so I decided to ask here... Has anybody come across
this?


I had problems getting this to work in Suse 9.3 as well. I wound up downloading the the newest version of the source code from apcupsd.org

http://sourceforge.net/project/showfiles.php?group_id=54413&package_id=73150&release_id=387206


and making my own RPM. I have had good success using the "simple" method of making RPMs using "checkinstall". See the suse wiki here http://susewiki.org/index.php?title=Build_Simple_RPMs

Just remember to use that RPM on the same machine you made it on only. This is a really simple way to install other apps you would like to try out, but can find no Suse RPMs for. Being RPMs, you can easily uninstall them when you like.

Also, in reading the apcupsd documentation, they state that the old way of using Master/Slave will be abandoned soon, so I set mine up using NIS. I was a little confused with this at first because I thought I needed to install a system wide file sharing service, but that is not the case. Just read the docs and use the NIS method to set up the Server (Master) and Clients (Slaves). The only annoying thing here is that the Server beeps and popups up a message saying that connection to the Client has been lost, when the client is shut down or reboots (not the other way around as with Master/Slave). I'm sure this warning message can be reconfigured to not come up if it gets bothersome. Other than that, the Server/Client method works great. FYI my server is running Suse 10 and Client 9.3.

Jim F

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • [SLE] APCs PowerChute vs. apcupsd
    ... In a recent thread there were questions about UPS software for SuSE where I ... pointed out that apcupsd was a good choice for APC UPS systems. ... Someone replied that instead of apcupsd one should use the PowerChute software ... PowerChute for Linux is not a complete package. ...
    (SuSE)
  • [SLE] apcupsd configuration
    ... I've just installed apcupsd using YaST on a SUSE 9.3 system and am confused by what I need to do to get it to work. ...
    (SuSE)
  • Re: [SLE] APC UPS
    ... > On Sun, 27 Feb 2005, Jim Flanagan wrote: ... >> APC ups works with a USB cable on the PC side connecting to an RJ-45 ... I'm using Suse 8.2. ... The apcupsd that comes with 8.2 ...
    (SuSE)
  • Re: [SLE] UPS (power supply) and SuSE
    ... Does Suse recognize the unit? ... >need to configure it primarily for UPS type, ... I can second that apcupsd is working goood from 8.0 up to 9.0 here at work ... the top of my head but its good an its on the disks for suse. ...
    (SuSE)
  • [SLE] [9.3] apcupsd as netslave broken?
    ... I'm just after trying to get apcupsd to run in netslave mode on a SuSE ... I then tried a step-for-step configuration ... bugtracker for 9.3 on Novell's site (yuck, yuck, yuck - the olde SuSE site ...
    (SuSE)