Robert Heller wrote: > At Fri, 1 Jul 2011 12:26:10 +0100 (BST) CentOS mailing list <centos at centos.org> wrote: > >> On Fri, 1 Jul 2011, Timothy Murphy wrote: >> >>> I have a CentOS-5.6 remote server in a house in Italy, >>> where there are occasional thunder-storms. >>> >>> There was one yesterday, when the electricity >>> went off 3 times, for a second or so on each occasion. >> <snip> >> >> Just buy a really basic UPS. I don't know what the prices are like where you >> are, but a crappy 500VA UPS can be had for about 25 uk pounds. >> >> I've only ever monitored APC UPSs which can be monitored easily from linux, so >> check for linux compatibility before buying something obscure. > > With a non-Linux compatable UPS, you can use a old analog serial modem > as a power sensor. If the machine has a serial port (RS-232), you can > plug the modem into the wall outlet and connect it to the computer's > serial port. When the power goes out, the modem goes off and powerd can > sense the loss of Modem Ready and treat that as a 'power failure' > signal. This trick works for cheap, obscure or basic *dumb* UPSs. > >> jh >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> > Another solution could be cheap router with IP not pluged into UPS. If server can not ping that IP, you would shut it down, via script. Ljubomir