-   Linux - Newbie (
-   -   Need a Script for System health Check up? (

your_shadow03 11-28-2009 02:27 AM

Need a Script for System health Check up?
I am in need of a script which will retrieve the remote Mchine health checkup. All i need is a webpage It need to have a text input asking for Hostname with credentials. Once submitted it will display the health checkup of the Machine like vmstat, disk usage, top output, sar, iostat, logs etc etc..

Anyone who have ever worked with the same?

EricTRA 11-28-2009 02:57 AM


I think that would be something you'll have to write for yourself if you really want it like that. In my opinion it will be a huge security risk.

First of all for obvious reasons you'll need to have it run on HTTPS and not HTTP. Next, most if not all of the commands you list require root privileges, not save to run over HTTP or HTTPS.

I think you'd better go with an SSH tunnel to execute your commands and report the output in a textfile/xmlfile on your server. Then you could show the output on a webpage.

If you want to set this up with SSH on multiple servers it might be interesting to look into DSSH.

Needless to say that you will need SSH enabled on the remote servers and be able to execute the commands.

Kind regards,


nagendrar 11-28-2009 03:26 AM

download plink from internet and using that we can run the commands or scripts on remote system and we will get the required result on our system.

Example to run command on remote system from out machine:
plink -pw <password> <username>@<ip> <command>

Example to run script on remote system from out machine:
plink -pw <password> <username>@<ip> -m <scriptname>

Nagendra Rednam

EricTRA 11-28-2009 03:31 AM

plink is just Putty Link (Windows utility AFAIK), that gives you the possibility to open a ssh connection.

Still it's better than HTTP :D

Kind regards,


stickman 11-28-2009 11:09 AM

You might try Nagios (or one of the other monitoring tools) on an SSL site. With the appropriate access restrictions for whatever is appropriate for your site (ie two factor, limited subnets, etc), you should be all set.

All times are GMT -5. The time now is 03:55 PM.