Re: (UPDATE) apcupsd 3.10.8 master/slave setup(whoops 3.10.6)

2003-12-18 Thread Dave McCammon
For the record.

The quick fix for Apcupsd 3.10.6 hangup problems was
to delete the apcaccess status parts out of the
scripts in /usr/local/etc/apcupsd/. (commok,
onbattery, etc...). Event messages still get walled
and mail still gets sent. Just non of the UPS status
information in messages. The status info can still be
gotten by doing a apcaccess status on the command
line (which used to not work, either).

What was happening was that when the power to the UPS
was pulled...the master server's apcupsd got stuck in
the script(or something associate with the status
part of the script) which stalled apcupsd. No slaves
could contact the master and, when power was restored,
apcupsd wouldn't respond to the event.

I believe this also happened when in standalone mode,
come to think of it.

Anyway, thanks to Lewis Watson in the apcupsd-user list.

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apcupsd 3.10.8 master/slave setup

2003-12-17 Thread Dave McCammon
Anyone have a master/slave or an NIS setup working
correctly that can share some insight?

If power is pulled from UPS, the master sends the
warning to its console but...

-the slaves lose their connection to the master
-an apcaccess status on the master after plug is
pulled will hang.
-when ups is plugged back in to power outlet there is
no status change sent.

- here is the apcupsd stuff from 'ps -aux'
--
root   31938  0.0  0.3  3864 1536  ??  Is4:49PM  
0:00.27 /usr/local/sbin/apcupsd --kill-on-powerfail

root   32071  0.0  0.1   632  264  ??  I 5:03PM  
0:00.00 /bin/sh /usr/local/etc/apcupsd/apccontrol
onbattery RACK_UPS 1 0

root   32072  0.0  0.1   632  264  ??  I 5:03PM  
0:00.00 /bin/sh /usr/local/etc/apcupsd/onbattery
RACK_UPS 1 0

root   32074  0.0  0.1   632  264  ??  I 5:03PM  
0:00.00 /bin/sh /usr/local/etc/apcupsd/onbattery
RACK_UPS 1 0

root   32075  0.0  0.1   992  564  ??  I 5:03PM  
0:00.01 /usr/bin/mail -s master.mydomain.net Power
Failure !!! root

root   32076  0.0  0.3  3312 1352  ??  I 5:03PM  
0:00.01 /usr/local/sbin/apcaccess status
--



master config is stock 

slave config is stock with below changed
UPSCABLE ether
UPSTYPE net
DEVICE master.mydomain.net:3551

The above configs are recommended from 
http://www.apcupsd.com/3.10.x-manual/ch04s06.html




__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apcupsd 3.10.8 master/slave setup

2003-12-17 Thread Dave McCammon
My bad

Subject should be apcupsd 3.10.6 master/slave setup
(from ports)

--- Dave McCammon [EMAIL PROTECTED] wrote:
 Anyone have a master/slave or an NIS setup working
 correctly that can share some insight?
 
 If power is pulled from UPS, the master sends the
 warning to its console but...
 
 -the slaves lose their connection to the master
 -an apcaccess status on the master after plug is
 pulled will hang.
 -when ups is plugged back in to power outlet there
 is
 no status change sent.
 
 - here is the apcupsd stuff from 'ps -aux'

--
 root   31938  0.0  0.3  3864 1536  ??  Is4:49PM 
 
 0:00.27 /usr/local/sbin/apcupsd --kill-on-powerfail
 
 root   32071  0.0  0.1   632  264  ??  I 5:03PM 
 
 0:00.00 /bin/sh /usr/local/etc/apcupsd/apccontrol
 onbattery RACK_UPS 1 0
 
 root   32072  0.0  0.1   632  264  ??  I 5:03PM 
 
 0:00.00 /bin/sh /usr/local/etc/apcupsd/onbattery
 RACK_UPS 1 0
 
 root   32074  0.0  0.1   632  264  ??  I 5:03PM 
 
 0:00.00 /bin/sh /usr/local/etc/apcupsd/onbattery
 RACK_UPS 1 0
 
 root   32075  0.0  0.1   992  564  ??  I 5:03PM 
 
 0:00.01 /usr/bin/mail -s master.mydomain.net Power
 Failure !!! root
 
 root   32076  0.0  0.3  3312 1352  ??  I 5:03PM 
 
 0:00.01 /usr/local/sbin/apcaccess status

--
 
 
 
 master config is stock 
 
 slave config is stock with below changed
 UPSCABLE ether
 UPSTYPE net
 DEVICE master.mydomain.net:3551
 
 The above configs are recommended from 
 http://www.apcupsd.com/3.10.x-manual/ch04s06.html
 
 
 
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/
 ___
 [EMAIL PROTECTED] mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apcupsd 3.10.8 master/slave setup(whoops 3.10.6)

2003-12-17 Thread Dave McCammon
Did forget to mention that I made the port with
--enable-net 

--- Dave McCammon [EMAIL PROTECTED] wrote:
 Anyone have a master/slave or an NIS setup working
 correctly that can share some insight?
 
 If power is pulled from UPS, the master sends the
 warning to its console but...
 
 -the slaves lose their connection to the master
 -an apcaccess status on the master after plug is
 pulled will hang.
 -when ups is plugged back in to power outlet there
 is
 no status change sent.
 
 - here is the apcupsd stuff from 'ps -aux'

--
 root   31938  0.0  0.3  3864 1536  ??  Is4:49PM 
 
 0:00.27 /usr/local/sbin/apcupsd --kill-on-powerfail
 
 root   32071  0.0  0.1   632  264  ??  I 5:03PM 
 
 0:00.00 /bin/sh /usr/local/etc/apcupsd/apccontrol
 onbattery RACK_UPS 1 0
 
 root   32072  0.0  0.1   632  264  ??  I 5:03PM 
 
 0:00.00 /bin/sh /usr/local/etc/apcupsd/onbattery
 RACK_UPS 1 0
 
 root   32074  0.0  0.1   632  264  ??  I 5:03PM 
 
 0:00.00 /bin/sh /usr/local/etc/apcupsd/onbattery
 RACK_UPS 1 0
 
 root   32075  0.0  0.1   992  564  ??  I 5:03PM 
 
 0:00.01 /usr/bin/mail -s master.mydomain.net Power
 Failure !!! root
 
 root   32076  0.0  0.3  3312 1352  ??  I 5:03PM 
 
 0:00.01 /usr/local/sbin/apcaccess status

--
 
 
 
 master config is stock 
 
 slave config is stock with below changed
 UPSCABLE ether
 UPSTYPE net
 DEVICE master.mydomain.net:3551
 
 The above configs are recommended from 
 http://www.apcupsd.com/3.10.x-manual/ch04s06.html
 
 
 
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/
 ___
 [EMAIL PROTECTED] mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]