LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2004, 07:10 AM   #1
lupus9537
LQ Newbie
 
Registered: Apr 2004
Location: Mechelen, Belgium
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Software for resource statistics


Hello everyone!

It's been a while because my Debian server is working properly without the need of any interventions

I'm looking for a console program to view meters on the screen or thru a telnet / ssh session.
I need "level meters" that show CPU and Memory usage. And above that the download and upload ...

Google searches came up with nothing interesting, so I was wondering anyone could give me a name of a program
 
Old 07-09-2004, 08:32 AM   #2
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
Have you tried gtkrelm ????

It runs under x and have a lots of functions like CPU occupation, memory and so on ( even network parameters ).

GOOD LUCK
 
Old 07-09-2004, 12:45 PM   #3
lupus9537
LQ Newbie
 
Registered: Apr 2004
Location: Mechelen, Belgium
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
Well, that's the problem. I don't have a X-server installed on the server. It's dedicated to HTTP, FTP, SAMBA and MySQL daemons. I don't have a screen connected to it. I administrate the server with telnet.

Therefor I need a program which can be run in console via a Telnet session.

Another possibility could be a daemon, which generates a html page every few seconds, which I can look up through a webbrowser ...
 
Old 07-10-2004, 02:41 AM   #4
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
maybe you could create a script that looks at the infos you require an put it on a text file. I do something similar with tail -f on a /proc file it makes an auto refresh. Maybe this solution is more time expensive but less difficult to realize.
 
Old 07-10-2004, 04:37 AM   #5
lupus9537
LQ Newbie
 
Registered: Apr 2004
Location: Mechelen, Belgium
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: 0
OK, if I understand this right, I create a shell script that gets the info from the system, and write it to a file...

Well, I'm learning fast, but I haven't got much experience yet with shell scripting.
Therefor I have 2 questions :
- How can I obtain following information :
* CPU usage
* physical memory usage
* Swapspace usage
* upload rate
* download rate

- How can I write this information in a file with a shellscript ?
- It would be really cool if I could insert this information into a MySQL table. This way I can monitor the usage in last few hours as well ... I presume this can be done with shell scripting as well ???

I would really appreciate it if someone could help me a bit with this issue... I'm a noob but I'm really interested in these things and I have a lot of XP with programming (the ooooold basic, visual basic, php...)
 
Old 07-10-2004, 05:19 AM   #6
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
Post

OK all the things you're looking for are under the directory

/proc ( that stand for processes )
and under
/var/log ( or something similar )

you have to locate them one by one but it isn't too difficult ( especially CPU and memory )

to create a shell script you could use a console text editing like vi ( I use this ) and I think that using a few commands like:


ls
grep
> (to redirect output in a file)
other commands . . .


you should resolve your problem. The file must be executable only by root so you have to change its permission with the command:

chmod 700 <filename>

then put it under your /sbin directory to place it between your shell command.

I think that with this system you shouldn't have problems. However I remember you two things:

1. I use SuSE so some things could be different (i.e. directories )

2. I'm not a programmer so I suggest you to look for a tutorial on how to write scripts in bash.

See you.
 
  


Reply



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
A Good Software Resource seesharp Linux - Software 2 11-24-2004 02:36 PM
any software that monitors resource usage? similar to ps aux every second cpanelskindepot Linux - Software 9 08-28-2004 04:56 PM
free web site statistics software on Linux? htic22 Linux - Software 7 04-29-2004 09:08 PM
Does anyone know of add-on software for sendmail to gather statistics? ForumKid Linux - Software 3 07-14-2003 01:42 PM
Statistics and Analsys software aqoliveira Linux - General 2 11-29-2002 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 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
Open Source Consulting | Domain Registration