[Xymon] raid bbwin monitoring

Jeremy Laidman jlaidman at rebel-it.com.au
Thu Jul 25 05:09:34 CEST 2013


On 22 July 2013 22:59, Gonzalez Peto <jkokino at gmail.com> wrote:

> One question:
> Do you go in bb-services and define raid as a service like [raid] and
> nothing else?
>

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.)

In this case, "raid" is not a network test, and so doesn't need anything in
bb-services.


> Because I am not able to make the mail alert working while all other
> alerts in similar fashion do work.
>
> This is what I try:
> PAGE=testpage SERVICE=raid
>         MAIL email[at]address.com COLOR=red REPEAT=1m
>
> PAGE=testpage SERVICE=conn
>         MAIL email2[at]address.com DURATION>2m REPEAT=1 RECOVERED
>

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.

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?
>

It's defined dynamically when the message comes from the client.  You don't
need to do anything.


> I tested with: .././bin/bbcmd hobbitd_alert --test foo raid
>
> Tells me it will fire email which is ok. However, it doesnt fire email in
> reality
> 00027264 2013-07-22 14:57:07 Matching host:service:page
> 'foo:raid:testpage' against rule line 62
> 00027264 2013-07-22 14:57:07 *** Match with 'PAGE=testpage SERVICE=raid'
> ***
> 00027264 2013-07-22 14:57:07 Matching host:service:page
> 'foo:raid:testpage' against rule line 64
> 00027264 2013-07-22 14:57:07 *** Match with 'MAIL email[at]address.comCOLOR=red REPEAT=1m' ***
> 00027264 2013-07-22 14:57:07 Mail alert with command 'mail -s "Hobbit
> [12345] foo:raid CRITICAL (RED)" email[at]address.com'
>

Looks OK to me.

Do you folks have any idea where to read/look? examples?
>

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.

J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130725/31087e89/attachment.html>


More information about the Xymon mailing list