![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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
|
![]() |
| Bookmarks |
| Tags |
| process monitoring program using c |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|