Detecting Power Failure?
Posted: Mon Feb 18, 2008 9:57 pm
Hi Y'all -
I finally got around to getting a new UPS with a USB interface. I prevously had my HB server on an older UPS with a serial interface. However, I didn't have enough comm ports on the server to connect it to the UPS. The new one has a USB interface. I do know that Windows can detect when the battery in the UPS is reaching a certain level that can trigger a program execution at a certain threshold, and even shut down the server.
What I'd like to do is to somehow have HB notice that the power has gone out (UPS has switched over to battery power). I sometimes lose power for maybe 5 minutes.
So, how do I go about making the link between UPS and HB? Ideas? I don't necessarily need HB to do anything, but it's more of a "FYI - you lost power", but others might want to use it to do something else.
Thanks!
I finally got around to getting a new UPS with a USB interface. I prevously had my HB server on an older UPS with a serial interface. However, I didn't have enough comm ports on the server to connect it to the UPS. The new one has a USB interface. I do know that Windows can detect when the battery in the UPS is reaching a certain level that can trigger a program execution at a certain threshold, and even shut down the server.
What I'd like to do is to somehow have HB notice that the power has gone out (UPS has switched over to battery power). I sometimes lose power for maybe 5 minutes.
So, how do I go about making the link between UPS and HB? Ideas? I don't necessarily need HB to do anything, but it's more of a "FYI - you lost power", but others might want to use it to do something else.
Thanks!