LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-28-2009, 02:27 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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 http://whyslow.company.com. 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?
 
Old 11-28-2009, 02:57 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

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,

Eric
 
Old 11-28-2009, 03:26 AM   #3
nagendrar
Member
 
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 154

Rep: Reputation: 15
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>

Regards,
Nagendra Rednam
 
Old 11-28-2009, 03:31 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

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

Still it's better than HTTP

Kind regards,

Eric
 
Old 11-28-2009, 11:09 AM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
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.
 
  


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
Need a script which does Health check for Linux and send mail notification? your_shadow03 Linux - Newbie 6 11-26-2009 06:20 PM
check the health of a drive? genmaicha Linux - General 3 08-28-2009 05:57 PM
need help to write script to check the process health and automatically restart it dragondad Programming 3 11-01-2006 12:23 PM
Health Check / Server Completion Check Software? tells Linux - Enterprise 0 04-20-2006 11:03 AM
Sparc5, no peripherals, health-check? Tinkster Solaris / OpenSolaris 4 12-05-2005 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:43 PM.

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