<div dir="ltr">On 22 July 2013 22:59, Gonzalez Peto <span dir="ltr"><<a href="mailto:jkokino@gmail.com" target="_blank">jkokino@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div>One question:</div></div><div>Do you go in bb-services and define raid as a service like [raid] and nothing else?</div></div></blockquote><div><br></div><div>No, bb-services is for something different.  It's used for defining your own bbnet/xymonnet protocols for testing.  For example, you might want to monitor some new service listening on port 19283, and to do a little conversation to make sure you get the correct result.  To do this, you define the protocol and port in the bb-services file.  (In Xymon, this file is called protocols.cfg.)</div>

<div><br></div><div>In this case, "raid" is not a network test, and so doesn't need anything in bb-services.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>Because I am not able to make the mail alert working while all other alerts in similar fashion do work. <br></div><div><br></div><div>This is what I try:</div><div><div>PAGE=testpage SERVICE=raid</div>


<div>        MAIL email[at]<a href="http://address.com" target="_blank">address.com</a> COLOR=red REPEAT=1m<br></div></div><div><br></div><div>PAGE=testpage SERVICE=conn<br></div><div><div>        MAIL email2[at]<a href="http://address.com" target="_blank">address.com</a> DURATION>2m REPEAT=1 RECOVERED</div>

</div></div></blockquote><div><br></div><div>The "SERVICE" in the alerts file has a different meaning to "service" used in the "bb-services" filename.  If the "raid" dot on your Xymon "testpage" screen goes red, then it should trigger an email as you have configured above.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div>The second on works, the first one doesnt. So, since raid is not in my bb-services file, then it is not a service per se, so I wonder how do I define it? Whether this is the correct way?<br></div></div></blockquote>

<div><br></div><div>It's defined dynamically when the message comes from the client.  You don't need to do anything.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div></div><div>I tested with: .././bin/bbcmd hobbitd_alert --test foo raid<br></div><div><div><br></div><div>Tells me it will fire email which is ok. However, it doesnt fire email in reality</div><div>00027264 2013-07-22 14:57:07 Matching host:service:page 'foo:raid:testpage' against rule line 62</div>


<div>00027264 2013-07-22 14:57:07 *** Match with 'PAGE=testpage SERVICE=raid' ***</div><div>00027264 2013-07-22 14:57:07 Matching host:service:page 'foo:raid:testpage' against rule line 64</div><div>00027264 2013-07-22 14:57:07 *** Match with 'MAIL email[at]<a href="http://address.com" target="_blank">address.com</a> COLOR=red REPEAT=1m' ***</div>


<div>00027264 2013-07-22 14:57:07 Mail alert with command 'mail -s "Hobbit [12345] foo:raid CRITICAL (RED)" email[at]<a href="http://address.com" target="_blank">address.com</a>'</div></div></div></blockquote>

<div> </div><div>Looks OK to me.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Do you folks have any idea where to read/look? examples?</div>

</div></blockquote><div><br></div><div>No, sorry.  I'm not very experienced with alerting.  However, the fact that you tacked this question onto what was essentially another thread probably means that nobody is going to read it.  People who have no experience with BBWin are more likely to skip the entire thread.  As your alerting issue is unrelated to BBWin, you might get a better response if you start a new thread.</div>

<div><br></div><div>J</div><div><br></div></div></div></div>