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 |
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 |
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 ... |
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.
|
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...) |
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 ) :confused: 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. :study: See you. |
All times are GMT -5. The time now is 09:26 AM. |