Question Locked

Automate sending an email / SMS at computer shutdown

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a client that wants to have an email message or SMS message delivered to his cell phone when his Windows XP computer shuts down due to a power failure. I have part of the solution as an interruptible power supply that has software that will allow the system to be put into hibernation when power goes out. Now all I need is a program that will sense this shutdown and email/SMS the client before it starts the shutdown procedure. Any ideas? Any free/shareware programs?

5 replies

by bob_steel

Use Nagios on a remote server and have it watch the target machine and alert you in whatever way you want should the machine stop responding.

http://nagios.org/

Nagios is uber-powerful and proven, and best of all open source GPL

by scott

This program would be good for a client/server network and I appreciate the response. However, my client has a stand-alone machine. So the program to inform him of the system shutdown would have to run on the machine in question.

by bob_steel

... but if this machine is able to send an email or an SMS
then it'll have to be on some sort of network and therefore
must be able to either respond to some sort of pinging, or
run a small client that touches a script on some other
machine somewhere else every second or so.

The UPS idea is nice, but a ups won't know if the machine
hangs with a kernel panic or otherwise just gives up the
will to live. And it'll have to be networked as well.

Without serious software engineering and running your OS
under some sort of em or shell, I really can't see how you
could build a system where the machine can action
something after it has died. You could have it email every
5 minutes and tell the client to worry only if the emails
stop?

Or maybe just some simple bit of heath robinson gear
plugged into the USB that detects the loss of +5v. A NC
relay triggers something that sends a message by any-old
method you like.

Still think nagios is your best, quickest and cheapest bet -
it's a bitch to set up though.

I'll be interested to know what you come up with.

Bob.

by welchvahe

I have never deal with this case~if someone has a way ,i also want to know~

This discussion is closed to new replies.