3 Aug
2007
3 Aug
'07
2 a.m.
Tal> I have a question about detecting power failures in Linux. I have Tal> an Intel server sitting in a datacenter. It is running Crux 2.1 Tal> (a 2.6 kernel). It is a 2U server with 2 power supplies. Does Tal> anyone know if I can detect when 1 of the power supplies fails? Depending on your server hardware and what the BIOS has configured, take a look at acpid(8) daemon man page. Or the apmd(8) man page. One of them should work for you. As a simple test, pull one power plug and watch the output of /var/log/messages and/or /var/log/dmesg to see what shows up. I'm on a debian setup, but I found some more docs in /usr/share/doc/acpid/README and I'm sure there are a bunch of docs if you google for them. Good luck! John