How do I trace a problem by hour and minute?

EcpHosting

Well-Known Member
Dec 16, 2002
69
0
156
I have noticed Apache failing almost evey 50min at certain times of the day. We then, of course, get an email telling us it failed and was restarted... but it takes 4-5 minutes for it to come back up.

My question: how do i trace what caused this fail? How can I? I can trace CURRENT processes, but is there a log that shows hour and time logs of events?

I would be grateful. :D
 

hostcp3

Well-Known Member
Jun 18, 2002
155
0
166
If you login SSH

at root type

cd /var/log

tail messages


will tell you the last events on the server

or you can copy and compress the file messages/ and download it for your perusal .


or for error logs

at root type

cd /usr/local/apache/logs

tail error_log


just check your logs are in those locations, we moved ours around so not sure exactly where yours maybe.

Hope it helps a little.
 

Donna

BANNED
Feb 15, 2003
88
0
156
Toronto, Canada
Been there done that and had to recompile apache to fix it :/

In my case it was an SSL problem. Might ask your datacenter to look into it for you as well.