Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 21310  / 3 Years ago, sat, september 11, 2021, 5:00:07

We've had problems with tripping a breaker and I think we just did it again, but I need to confirm that 1 of our boxes rebooted due to a power outage and not for another mundane reason.



I have gleaned the following information from the logs, but wonder if there's something more telling:



Approx time of restart:
May 19 19:54:57 atlas07

$ last
davidpar pts/0 10.1.2.12 Sun May 19 19:54 still logged in
reboot system boot 3.5.0-30-generic Sun May 19 19:44 - 20:19 (00:34)
davidpar pts/0 10.1.2.83 Tue May 14 04:14 - 04:21 (00:06)
...


$ tail -n 500 syslog
<cut>
May 19 19:44:58 atlas07 ntpdate[1489]: adjust time server 91.189.94.4 offset 0.000047 sec
May 19 19:45:04 atlas07 CRON[1492]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
May 19 19:54:57 atlas07 dbus[1012]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
May 19 19:54:57 atlas07 dbus[1012]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
May 19 19:54:57 atlas07 polkitd[1565]: started daemon version 0.104 using authority implementation `local' version `0.104'
<cut>

More From » server

 Answers
1

The last command will display crash for the end time of a session if the shutdown was not clean, which would include a power outage. Example entry:



myuser pts/1        myhostname  Wed Sep 28 14:18 - crash  (00:23)


Looking at your last entries (assuming this is all of them) there are no crashes listed there, so no power outage occurred while this system was on. The reboot that is listed here looks to be a commanded reboot and not a crash. If you didn't manually reboot this box, you then a program with root access did.


[#31129] Sunday, September 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
nquirewha questions
Wed, Jan 26, 22, 03:38, 2 Years ago
Mon, Nov 1, 21, 13:50, 3 Years ago
Thu, Dec 1, 22, 09:23, 1 Year ago
;