Mac mini shutting down mysteriously
For a while now, my 2009 Mac mini has been shutting itself off for no apparent reason. It typically happens every few days, when I'm away from the computer.
Possible suspects include a failing AC adapter and maybe my aging Tripp-Lite UPS commanding a shutdown due to a weak battery. (Since it was new, the UPS has always done a weird thing—or maybe a self-test—once or twice a day where it apparently switches to backup power for a second or two, and the Mac pops up an alert that the power has failed, but AC mode comes right back on and this seems unrelated to the random shutdowns.)
I figure there must be a log file somewhere that will tell my why it's doing this, but I don't know where to look. Any ideas?
Mac mini, OS X Mavericks (10.9.2), 8GB RAM, running OS X Server