LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2004, 09:00 AM   #1
asmith1972
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
What to Check to make sure system is OK


Hi

Coming from a Windows server background when I get asked if a server is up and running. I can simply perform a ping, check to see that all the automatic services are running ok, that there is fee memory/disk space and that the server CPU is not running at 70%+

I know this doesn't check everything but it does give a very quick good indication that things look ok.

Now in Unix/Linux what types of things should I be looking at and probably more importantly what commands do I run to check these.

Thanks
 
Old 05-04-2004, 10:19 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

pgrep command is usefull. For example:
Code:
pgrep sshd
to see if your ssh server is runnunig.
You can also check that with networking commands like netstat to check that the ports corresponding to your server are opened. To check resources, you can use top command.
And sometimes you can check a service is running thanks to their startup/stop script. For example: "/etc/init.d/ftpd status" may give you server status.

Oliv'
 
Old 05-19-2004, 11:28 AM   #3
juliettree
LQ Newbie
 
Registered: Apr 2004
Location: Kent, UK
Posts: 12

Rep: Reputation: 0
Have you tried just typing in the command

top

from a command line. Brings up a screen showing CPU usage etc. Its non interactive and you ctrl/c out of it but may be a little of what you are after
 
Old 05-19-2004, 07:27 PM   #4
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Hi, I agree that top is probably the most useful tool for you--in many ways like the Processes and Performance tabs in Task Manager (except you cannot stop processes). It also shows you the load average (the average number of processes waiting for a timeslice).

For checking the hard drive, try

du / -sh

to find what's been used, and

cat /proc/ide/hda/capacity

to see the total capacity (substituting scsi for ide as necessary).
 
Old 05-19-2004, 10:55 PM   #5
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
You can stop a process in top but you can't start one.
 
Old 05-19-2004, 11:10 PM   #6
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
I did not know that you can stop a process in top. How does one do this?
 
Old 05-20-2004, 12:12 AM   #7
student04
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: OS X, CentOS
Posts: 669

Rep: Reputation: 34
type: kill -KILL PID#

you find the "PID#" in top; replace PID# with that number

ok so this is not directly through top :P whatever.. but it's how i do it (i look at top, then type that in)

ALSO if you run mandrake, there's a nifty tool:
Press Ctrl+Alt+Esc and your cursor turns into a death symbol.. then just click on the app that you want to die

Last edited by student04; 05-20-2004 at 12:14 AM.
 
Old 05-20-2004, 08:13 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
I did not know that you can stop a process in top. How does one do this?
During top command, you just have to type "k", and it will prompt you for a PID to kill You can also renice process during top with "r" key... In fact to see all available possibilities, type "h" for help

Oliv'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 08:38 PM
Error:6.11 Glibc-2.3.4---make check ukyo Linux From Scratch 3 08-26-2005 06:33 PM
$make check / glibc impulze Linux From Scratch 1 04-29-2004 05:35 PM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 12:17 PM
gcc-3.3.1 make -k check - make [check] Error 2 BarryM45 Linux From Scratch 1 02-05-2004 09:44 AM


All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration