The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 04:30 AM
monitoring running processes nhatch Shell Programming and Scripting 2 12-21-2007 09:03 AM
How to delete the files from local host to remote host krishna176 SUN Solaris 3 03-24-2007 04:48 PM
host alias not working: host not found FunnyCats UNIX for Advanced & Expert Users 4 05-13-2005 04:36 PM
QNX host cannot ping SCO host, vice versa gavon IP Networking 2 08-20-2001 08:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-22-2006
Andimotz80 Andimotz80 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 3
Monitoring processes of another host

Does anyone have a script, which monitors the processes of another host?
  #2 (permalink)  
Old 06-22-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Well, a few members probably do, but you may have to make slight or even major changes in order to get it working at your site. I suggest that you write a script of your own customised to your setup. You can use rsh to connect to connect between servers though ssh is probably a better choice.
Something like:
Code:
rsh/ssh -l username hostname "ps -ef"|grep process_being_monitored
or
Code:
rsh/ssh -l username hostname "ps -ef" > /tmp/filename #on local node
grep process1 /tmp/filename
grep process2 /tmp/filename # and so on
Remember to setup password-less rsh or ssh access between any two users (not root!) on the two hosts.

Cheers.
  #3 (permalink)  
Old 06-23-2006
Andimotz80 Andimotz80 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 3
I mean a script which checks if a process need to much CPU or something like that?
  #4 (permalink)  
Old 06-23-2006
grumpf grumpf is offline
Registered User
  
 

Join Date: May 2006
Posts: 101
perhaps you mean somethink like 'top' ?

just i case you are thinking more that on system there are also special system monitoring programms available like cacti, ntop, nesses and several more.
  #5 (permalink)  
Old 06-26-2006
Andimotz80 Andimotz80 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 3
I mean a shell script to implement in nagios, which runs on different operating systems like tru64, linux, ...
  #6 (permalink)  
Old 07-10-2006
vivsiv vivsiv is offline
Registered User
  
 

Join Date: Jun 2006
Location: Los Angeles
Posts: 17
rsh or remsh set up

Tell me if i am correct !!
Two servers
server 1
Server2
Im setting up remsh to execute a command on server2 from server1, then is it enough if i add the server2 entry in my .rhosts files of server1 , or is there something more to this.
thanks for ur help
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0