Sponsored Content
Top Forums Shell Programming and Scripting Monitoring processes of another host Post 302077520 by blowtorch on Thursday 22nd of June 2006 10:18:35 PM
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.
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
emsweb(1M)																emsweb(1M)

NAME
emsweb - starts the HP-UX Event Monitoring Service tool (a Web interface) SYNOPSIS
[ ] [ ] DESCRIPTION
The HP-UX Event Monitoring Service tool ( ) is used to monitor resource instances and manages requests created on these instances. The HP-UX Event Monitoring Service tool provides both Web-based and terminal user interface. The Web-based interface is launched through the HP System Management Homepage. Superuser privileges are required to access the HP-UX Event Monitoring Service tool. A user who does not have superuser privileges has read-only access to the requests area in the HP-UX Event Monitoring Service tool and cannot modify requests. An attempt will be made to connect to a Mozilla/Netscape Web browser running on the X server defined by the DISPLAY environment variable. If a running Mozilla/Netscape client is found, it will be used, otherwise a new Mozilla/Netscape session will be initiated. This will only happen if the Mozilla/Netscape process is running in the same system as that referenced by the DISPLAY variable, unless the -F option is used. Note: By default, the HP-UX Event Monitoring Service tool (emsweb) invokes the Mozilla Web browser. If you want to support any other browser (Netscape), set the $BROWSER environment variable as shown below: The terminal user interface is invoked if any of the following conditions are true: o The command is invoked with the option. o The environment variable is not set. The Web-based interface is launched if all the following conditions are true: o The command is invoked with option. o The environment variable is set. o The command is available on the system. If the Web-based interface cannot be launched, invokes the terminal user interface. Options recognizes the following options: Forces a client browser to be used in less secure ways. The option forces the client browser to be used or started, even when the X-traffic between the X-server and the Mozilla browser is not secure. Use this option only when you are sure the network traffic between the host where Mozilla is running and the host in the DISPLAY variable is secure. If cannot start the Web browser, the terminal interface is started. When the HP-UX Event Monitoring Service Web interface is invoked by SAM, the option is used. If a privileged user (root) executes the command with the option, a temporary login bypass key is generated. The bypass key enables the user to access the Web interface without having to provide login information again. When the HP-UX Event Monitoring Service Web interface is invoked by SAM, the option is used. Opens the terminal interface for managing requests created to monitor resource instances regardless of the current setting of the environment variable. You can also start the HP-UX Event Monitoring Service tool using one of the following methods: o Invoke and select the Event Monitoring Service (character mode) functional area to launch the terminal user interface and the Event Monitoring Service (Web-based Interface) to launch the Web-based tool o Invoke the HP-UX Event Monitoring Service tool Web interface by typing the URL in the address bar of your browser, where hostname is the name of the server o Launch the HP-UX Systems Insight Manager on the server and select the Event Monitoring Service tool from the Configure -> HP-UX Configuration menu Online Help After the HP-UX Event Monitoring Service tool is started, the online help provides details on how to use the tool. RETURN VALUES
Upon completion, emsweb returns one of the following values: o 0 Successful o 1 An error occurred AUTHOR
was developed by Hewlett-Packard. SEE ALSO
emscli(1M), resls(1), resdata(1) emsweb(1M)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy