Monitoring Individual Programs

Darren Gamble Darren.Gamble at sjrb.ca
Thu Aug 15 18:00:07 CEST 2002


Good day,

> List,
> Im new to NAGIOS, but I have looked through the docs and Im 
> still at a loss. I have NAGIOS up and running and its great. 
> However, I have 3 applications that run and I would like to 
> be notified if they crash. Is there a way to monitor the apps 
> by CMD name and not PID? The reason for this is they stop and 
> restart pirodically so the PID changes. 

You're probably best off writing your own shell script that can determine if
a process is running by name (using ps, grep, awk, etc).  Consult the man
pages for those programs for more information.

If you want to take it to the next level, you can use the NET-SNMP agent to
see how many hosts are running on any local or remote machine via SNMP
(you'll need to configure the agent for each specific process) which is
fairly easy to do.  We use this very heavily here.

============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list