AW: Monitoring Long process names on Solaris

Helmut Januschka h.januschka at krone.at
Fri Mar 19 16:05:28 CET 2004


on heavy load systems we are using

grep "<PROCESSNAME>" /proc/*/cmdline

instead of ps auxww

cu


-----Ursprüngliche Nachricht-----
Von: Jim Mozley [mailto:jim.mozley at exponential-e.com] 
Gesendet: Freitag, 19. März 2004 15:58
Cc: nagios-users at lists.sourceforge.net
Betreff: Re: [Nagios-users] Monitoring Long process names on Solaris


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


-------------------------------------------------------
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_id70&alloc_id638&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