<br><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 3:48 AM,  <span dir="ltr"><<a href="mailto:martin.flemming@desy.de">martin.flemming@desy.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Hi !<br>
<br>
Is it possible ( i think not, but i'm asking too :-)) to combine<br>
Alerts for several proc-conditions or is there an external-test for it :<br>
<br>
 I want to monitor 4 processes<br>
<br>
yellow alert for no found process of<br>
<br>
sge_execd<br>
load_sensor<br>
<br>
red alert if additional no process of<br>
<br>
sge_shepherd<br>
sge_coshepher<br>
<br>
are found ...<br>
<br>
thnaks & cheers,<br>
<br>
       Martin<br>


<br>
</blockquote></div><br>Unless I'm misunderstanding your question: just use multiple PROC lines, one for each process or pattern. For example, I have for one host:<div><br></div><div>  PROC cupsd 1 -1 yellow</div><div>

  PROC dhcpd 1 -1 yellow</div><div>  PROC nmbd 2 -1 red</div><div><br></div><div>So, if there is not at least one each of cupsd and dhcpd the procs column is yellow, and if there is not at least 2 of nmbd the procs column is red. Red wins if there is a tie. </div>

<div><br></div><div>You can use patterns like</div><div><br></div><div>  PROC "%dsmc " 0 -1 yellow</div><div><br></div><div>which will turn yellow if there are any procs with any occurrence of dsmc<space> in the proc name. The double quotes are there to include the space after the string dsmc. </div>

<div><br></div><div>Steve<br clear="all"><br>-- <br>The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)<br>

<br>Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) <br>
</div>