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 > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
monitoring 'waiting' processes jon80 UNIX for Dummies Questions & Answers 3 08-07-2008 01:24 PM
Running app after logout and monitoring ncatdesigner High Level Programming 1 04-21-2008 05:39 AM
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
Monitoring processes of another host Andimotz80 Shell Programming and Scripting 5 07-10-2006 08:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-28-2009
vigneshinbox vigneshinbox is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 13
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 heplfull.Plz help me.

thanx for ur valuable support.
  #2 (permalink)  
Old 01-28-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,724
Can you not create a simple cron script that emails you when the process is down. That is what most people do. Something like this run every X minutes:

Code:
ps -ef | grep 'myprocess' | grep -v 'grep' | read result
if [[ -z "$result" ]] ; then
     echo "myprocess is down `date`" | mailx -s 'myprocess is down' me@my.com
fi
  #3 (permalink)  
Old 01-30-2009
vigneshinbox vigneshinbox is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 13
hey dude...
thanx for ur valuable response...
Closed Thread

Bookmarks

Tags
process monitoring program using c

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 04:15 PM.


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