Shameless plug:
Message Central will do both of these for you
(‘Appliance Power Monitor’ trigger)
Andy