Monitoring processes of another host


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Monitoring processes of another host
# 1  
Old 06-22-2006
Monitoring processes of another host

Does anyone have a script, which monitors the processes of another host?
# 2  
Old 06-22-2006
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  
Old 06-23-2006
I mean a script which checks if a process need to much CPU or something like that?
# 4  
Old 06-23-2006
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  
Old 06-26-2006
I mean a shell script to implement in nagios, which runs on different operating systems like tru64, linux, ...
# 6  
Old 07-10-2006
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
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

2. Shell Programming and Scripting

Pause processes in remote host and resume execution in another remote host

Hi, Given addresses of 2 remote machines, using a shell script is it possible to get the state of running processes in "src" stop all the processes in "src" exit out of "src" ssh into "dest" resume the state of executing processes captured in step 1 in "dest" Assumption: "src" is... (3 Replies)
Discussion started by: Saeya Darsan
3 Replies

3. UNIX for Advanced & Expert Users

Monitoring cpu usage of mysql processes/threads/queries without any tool

hi all, i want to monitor mysql processes/threads/queries with respect to cpu usage.how can i do it? show processlist is of no use as no information abt cpu usage is given. plz help (7 Replies)
Discussion started by: rohitmahambre
7 Replies

4. Shell Programming and Scripting

Cron job for monitoring processes

I have to monitor several processes in my application . i get the listing of these processes using the command ps -ax i want to write a shell script that will monitor the processes and if a process goes missing then it will send an email to my gmail account. I want to run this... (6 Replies)
Discussion started by: asalman.qazi
6 Replies

5. Programming

Need C program for monitoring a processes that are running in different nodes

Hey, I am doing a high availability project. I need coding(socket programming using C) to monitor processes that are running in different nodes with in a network cluster.At last if u could give me a program in C to monitor the process(whether it is running or failed),it would be very... (2 Replies)
Discussion started by: vigneshinbox
2 Replies

6. UNIX for Dummies Questions & Answers

monitoring 'waiting' processes

Is it possible to monitor processes whether they are waiting or active? Basically I would like to know since which TIME the process has been running and the state. :confused: (3 Replies)
Discussion started by: jon80
3 Replies

7. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

8. Shell Programming and Scripting

monitoring running processes

I have a script that runs continuously and will deliver a file to multiple servers via scp. On occasions one of the scp's will hang and as a result not complete in sending the remaining files and not loop around again. If I run the scp commands with a & they'll complete, but I want to make sure... (2 Replies)
Discussion started by: nhatch
2 Replies
Login or Register to Ask a Question