<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6396.0">
<TITLE>check_procs problems</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am trying to monitor 3 Processes with nagios.</FONT>
</P>

<P><FONT FACE="Times New Roman">/usr/sbin/inetd</FONT>

<BR><FONT SIZE=2 FACE="Arial">pbs_server</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">/opt/CTXSmf/slib/ctxXtw -session 835 -terminate -notransfills -frameexpose -not</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">I have tried the following.</FONT>
</P>
<BR>

<P><I><FONT SIZE=2 FACE="Arial">check_procs -c 1:1 -C</FONT> <FONT FACE="Times New Roman">/usr/sbin/inetd</FONT></I><FONT FACE="Times New Roman">                 this works fine  "OK - 1 processes running with command name /usr/sbin/inetd"</FONT></P>
<BR>

<P><I><FONT FACE="Times New Roman">check_procs -c 1:1 -C</FONT> <FONT SIZE=2 FACE="Arial">pbs_server</FONT></I>        <FONT SIZE=2 FACE="Arial">    this reports "</FONT><FONT FACE="Times New Roman">CRITICAL - 0 processes running with command name pbs_server"</FONT>

<BR><FONT FACE="Times New Roman">but</FONT><I> <FONT FACE="Times New Roman">ps -ef|grep pbs_server</FONT></I><FONT FACE="Times New Roman">  reports          "root 19925     1  0   May 07 ?        0:25 pbs_server"</FONT>

<BR><FONT FACE="Times New Roman">so the service is up, but  check_procs is not seeing it?????  any ideas?</FONT>
</P>

<P><FONT FACE="Times New Roman">also the third process i dont know how to check as the number in the command line changes with every instance of the process, so </FONT></P>

<P><FONT FACE="Times New Roman">check_procs -c 1:20 -a "</FONT><FONT SIZE=2 FACE="Arial">/opt/CTXSmf/slib/ctxXtw -session 835 -terminate -notransfills -frameexpose -not"            this will not work as only 1 process has that number.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Any help from much appreciated.</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Stuart</FONT>
</P>

</BODY>
</HTML>