General Unix Error Logging?

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers General Unix Error Logging?
# 1  
Old 09-03-2009
General Unix Error Logging?

Yesterday evening my server appeared to fall over. I couldn't copy (scp) files to it, and I couldn't SSH to it either. Every time I tried, it just gave me this message:

Read from remote host <IP ADDRESS>: Connection reset by peer
Connection to <IP ADDRESS> closed.

I got in this morning, and unfortunately it hadn't fixed itself. I went down to the server room to try and use the console down there, but that wasn't responding, so I rebooted it.

This fixed the problem, and everything came back up, but I would like to know what happened to it. I've had a look in /var/log/secure and it isn't massively helpful - it shows the last activity before falling over as being on 30th August (which is correct) and then nothing until 9:10 this morning:

Sep 3 09:10:24 www sshd[2849]: Server listening on :: port 22.
Sep 3 09:10:24 www sshd[2849]: error: Bind to port 22 on failed: Address already in use.

Which I guess is when I booted it. It hasn't recorded any failed attempts to connect to it.

Are there any logs that might show me what happened in between this period so that I can figure out what went wrong? I was thinking maybe some process logs or something?

Sorry for the lengthy post, wanted to give as much detail as possible. Thanks guys!
# 2  
Old 09-03-2009
But you forgot the most important: What architecture/OS (and version would help)
# 3  
Old 09-07-2009
Ah, yes. That was daft of me. Redhat Enterprise Linux 5.

uname -a gives:
Linux <SERVER ADDRESS> 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux

[EDIT] Oh, And if it helps, cat /proc/version gives
Linux version 2.6.18-8.el5 ( (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan
26 14:15:21 EST 2007


Last edited by Dave Stockdale; 09-07-2009 at 04:17 AM..
# 4  
Old 09-08-2009
You could try /var/log/messages. Also, if sar is configured on your server you could check that to see if resources ran low and caused the hang/crash. If it isn't configured you may want to set that up in case it crashes again. Finally, checking "last" should tell you who was logged in at the time it failed if that gives any clues.
# 5  
Old 09-15-2009
Thanks for your help rhfrommn. I couldn't find anything useful in those locations, and sar isn't configured, but I'll look up how to do it for next time. I've also turned the reporting on SSH up. It looks like I won't know what happend to it on this occasion, but if it happens again I should be able to find out what is going on.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

UNIX.COM General Data Privacy Regulations (GDPR) Compliance - For Member Comments

Dear All, Please read version Version 0.81 28 May 2018 of our draft UNIX.COM General Data Privacy Regulations (GDPR) Compliance. If you have any data privacy questions or concerns, or would like to see us address any other data privacy topic related to your personal data at UNIX.COM,... (12 Replies)
Discussion started by: Neo
12 Replies

2. UNIX for Dummies Questions & Answers

Identify issues through logging in unix

I am a newbie to unix and appeared for an interview and was asked this question. If i was working for a company as a support person on an application and has to monitor the logs how would i determine if there was outage by checking the logs and where would i search for the issue initially. and... (2 Replies)
Discussion started by: praveenveerla
2 Replies

3. UNIX for Dummies Questions & Answers

General Terminology related to the UNIX System

Hello, I am relatively new to the world of programming in general and to the UNIX System in particular. I have a bunch of theoretical questions related to terminology which I have come across in my coursebooks. I hope I post my question at the right place. Any help would be warmly welcome! ... (1 Reply)
Discussion started by: feliks0
1 Replies

4. Shell Programming and Scripting

Logging into another UNIX box

Hello All, Is there any UNIX or KSH Command to login to an linux/unix server and execute a command and then come back to the original server where u have executed the command. For Example: ------------------------------------------------------- SServer1 - Source Server. DServer2 -... (1 Reply)
Discussion started by: maxmave
1 Replies

5. UNIX for Dummies Questions & Answers

Few general unix qns..URGENT!!

hey guys, I have a few general qns on unix, so I'd appreciate quick responses. 1. How do u read a file line by line and display its contents using KSH? 2. How to kill a process using only the name? 3. How to create an empty file with 1MB memory size? 4. How to append some content to an... (2 Replies)
Discussion started by: sasuke_uchiha
2 Replies

6. Shell Programming and Scripting

General UNIX Query

Hi all, I am having putty in my system.But I dont have access to any UNIX Servers.Is there any default or common UNIX Server so that anyone can access and be familiar with UNIX and Shell scripting. I want to work and practice in UNIX..Thats why I am asking this question. Kindly give me... (2 Replies)
Discussion started by: dave_nithis
2 Replies

7. UNIX for Dummies Questions & Answers

on unix, ftp to windows...logging in

I am ftp'ing to one of our network drives to pick up a tar file. In the script, it does the ftp, but doesn't pick up the username and password. Do I need to script these a certain way so it knows this is input? ftp userid passwd (5 Replies)
Discussion started by: brdholman
5 Replies

8. UNIX for Advanced & Expert Users

unix logging

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies

9. UNIX for Advanced & Expert Users

General Unix Questions !!

1. How do we know what is my machine name and what is its IP address? (in Solaris) 2. If i want to know the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris) then what command i have to look. (5 Replies)
Discussion started by: dreams5617
5 Replies

10. UNIX for Dummies Questions & Answers

users logging on to unix boxes

I have been asked to write a unix script to log and report all users logging on to our unix boxes as either the root or oracle users only on a 24 hour basis. This should trap the logon and logoff time,if possible what they are doing and their username. Thanks in Advance (2 Replies)
Discussion started by: irehman
2 Replies
Login or Register to Ask a Question