still looking for suggestion on this. reposting in case someone missed it first time. thanks<div> <br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 5:49 PM, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com">vadud3@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div class="im">On Mon, Jan 25, 2010 at 5:36 PM, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How do I do PORT tests as a condition to running PROC ?<div><br></div><div>In other words do the PORT test and alert me only if PROC A is running. Otherwise ignore.<br clear="all"><br></div></blockquote><div><br></div></div>

<div>
Let me make the scenario little bit more interesting.</div><div><br></div><div>I have HOST A and HOST B. hobbit client is running on both of them. </div><div>If process P should be run only on one of them at a time and that will make that</div>


<div>HOST, the primary HOST. </div><div><br></div><div>So if process P runs on HOST A then I want to be alerted based on PORT tests on HOST A</div><div><br></div><div>if process P runs on HOST B then I want to be alerted based on PORT tests on HOST B </div>


<div>  </div><div>If process P runs on both HOSTs then I want to be alerted about POST tests on both HOSTs. </div><div>However this third scenario should not happen</div><div><br></div><div>I was thinking of creating an entry in bb-hosts with a dynamic HOST name which will be something like</div>


<div><br></div><div>HOST=%IamPrimary.* </div><div>  PROC ..</div><div>  PORT ..</div><div><br></div><div>That probably makes it a lot more complicated than it may already is.</div><div><br></div><div>Please advise.</div>

<div>
<br></div><div>Thanks</div><div class="im"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>



A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br><br><br>
</div>
</blockquote></div></div><div><div></div><div class="h5"><br><br clear="all"><br>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>

Q: Why is top-posting such a bad thing?<br>
<br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>

Q: Why is top-posting such a bad thing?<br><br><br>
</div>