<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Mensagem</TITLE>

<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2>As per the last 3 lines of "./check_procs -h":</FONT></SPAN></DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2>[quote]</FONT></SPAN></DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2>RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). 
If<BR>specified 'max:min', a warning status will be generated if the<BR>count is 
inside the specified range<BR></FONT></SPAN><SPAN class=733184223-17102002><FONT 
face="Comic Sans MS" color=#000080 size=2>[end quote]</FONT></SPAN></DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2>So, you would want to do something like:</FONT></SPAN></DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2>./check_proc -w 1: -c 1: -C process_command</FONT></SPAN></DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=733184223-17102002><FONT face="Comic Sans MS" color=#000080 
size=2>jc</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Sandro Merg Vaz 
  [mailto:sandro@opservices.com.br]<BR><B>Sent:</B> Thursday, October 17, 2002 
  6:01 PM<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> 
  [Nagios-users] check_running_proc (not check_procs)<BR><BR></FONT></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial 
  size=2>Nagiosmates:</FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2>I´m deploying a 
  Nagios solution to monitor some Linuxes and one important point is to check 
  the presence of some process (like named,snmpd, sshd, crond, etc.). But the 
  existing check_procs plugin just warns me if there are MORE than the -w 
  specified option. But I just want to know if there is at least one process 
  instance running, being warned if there is NO process 
  running.</FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2>It would be like 
  this, using check_procs sintax:</FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial 
  size=2>./check_running_proc -C process_command</FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>It would return just OK or 
  CRITICAL.</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002></SPAN></FONT></SPAN><SPAN 
  class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002></SPAN></FONT></SPAN> </DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>If some of you have any idea (instead of advising me 
  to write my own plugin, which is the next step), please let me 
  know.</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002></SPAN></FONT></SPAN> </DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>TIA.</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002></SPAN></FONT></SPAN> </DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>Sandro Vaz</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002><A 
  href="mailto:sandro@opservices.com.br">sandro@opservices.com.br</A></SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>********************************</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>InterOp Corp.</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>OpServices Division</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002>(+55) 51 3216-7000</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002><A 
  href="http://www.interop.com.br">http://www.interop.com.br</A></SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=381164622-17102002><FONT face=Arial size=2><SPAN 
  class=381164622-17102002><SPAN class=381164622-17102002><FONT face=Arial 
  size=2><SPAN 
  class=381164622-17102002>********************************</SPAN></FONT></SPAN></SPAN></FONT></SPAN></DIV><BR>
  <P><FONT size=2>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by 
  AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.401 / Virus 
  Database: 226 - Release Date: 
9/10/2002<BR></FONT></P></BLOCKQUOTE></BODY></HTML>