Monitoring Long process names on Solaris

Jim Mozley jim.mozley at exponential-e.com
Fri Mar 19 15:58:00 CET 2004


Charles Bueche wrote:


> well, for some things, you have no choice. We do it that way (not in
> Nagios) to check for processes that must run and have ugly long names
> (eg WLS instances). The right way is to run it once every 5 minutes and
> look for all processes you want (not running /usr/ucb/ps auxwww | grep
> pname for each process).

Just a thought, have you tried using pgrep? Don't know if it will help 
get around the long names. I'm using perl's proc::processtable you might 
get some milage from this.

Jim Mozley


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list