Hi all,

I have been spending quite a bit of time configuring the apcupsd service with NIS and every imaginable feature on OpenSuSE 11.0. The service is working great for me, and I have been able to automate system shutdowns and reboots when power failures occur. I have three questions that all kind of tie together, so please bare with me.

1)I am using the automated startup after a shutdown by having the BIOS autostart when AC power is seen (i.e. when the UPS receives power and turns itself on again.) Is this the only way to achieve having the system come back up on its own (is this how others do it?)

2)I have setup all of the /etc/apcupsd scripts to send me automated emails as to apcupsd events when they occur. I receive an onbattery email when the powerfail file is seen, and I receive an offbattery email if I plug the UPS back in before the auto shutdown occurs (with halt and killpower). However, if the system does shutdown from the UPS being unplugged awhile and then starts up again after some time when I plug the UPS back in, I cannot receive an offbattery email since offbattery will only trigger if the onbattery status is already set (I assume it resets with the shutdown/startup).
offbattery
This event is generated when the mains return only if the onbattery event has been generated.
Default: wall a message (taken from apcupsd User Manual)
How can I automate an email in apcupsd to let me know that the system has come back up successfully?

3)Which leads me to the 3rd question: If the UPS loses power and the system shuts down, there is a default grace period of 20 seconds that the UPS will wait for the computer to shutdown before it kills the battery power to it. If the power were to come back up (by some strange chance) during that 20 second interval, the computer will not restart as it will never lose constant power from the typical UPS shutdown. The BIOS will not see this as a change from 0 power to full power and thus will not start the computer up again. How can I get around this?

Sorry about all of the questions. Just some considerations that I thought some of you may have tackled before. Thanks for reading and for any tips you might be able to give me.

-Kisron