[Xymon] raid bbwin monitoring

Gonzalez Peto jkokino at gmail.com
Mon Jul 22 14:59:49 CEST 2013


You are right Darin. Thank you. Very helpful. I didnt try the relative path.

What I found as an experience while testing these days is that some servers
array cli returns "Ok" while most of them return "OK" for logical disk. All
of them though, return "OK" for physical disk.

One question:
Do you go in bb-services and define raid as a service like [raid] and
nothing else? I guess not because then I do not get any info other than
this:
Service raid on FOO is not OK : Service unavailable

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

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'

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


Thanks



On Fri, Jul 19, 2013 at 4:36 PM, Dugan, Darin D [ITSYS] <dddugan at iastate.edu
> wrote:

>  FYI, in my experience you can generally specify a path relative to the
> BBWin bin folder as shown below. This is nice if you still have a mix of
> 32- and 64-bit systems, or have BBWin installed in different locations for
> some reason, etc.****
>
> ** **
>
> <load value='cmd /c "..\ext\CheckHpRaid.cmd"' timer="3h"/>****
>
> ** **
>
> Cheers.****
>
> ** **
>
> *From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Gonzalez
> Peto
> *Sent:* Friday, July 19, 2013 9:13 AM
> *To:* xymon at xymon.com
> *Subject:* Re: [Xymon] raid bbwin monitoring****
>
> ** **
>
> Brilliant.****
>
> The path was incorrect when I went into debug mode for bbwin.exe****
>
> This is the correct:****
>
> <load value='cmd /c "C:\Program Files\BBWin\ext\CheckHpRaid.cmd"'
> timer="3h"/>****
>
> <load value='cmd /c "C:\Program Files (x86)\BBWin\ext\CheckHpRaid.cmd"'
> timer="3h"/>****
>
> ** **
>
> Credits to Ray. Thank you****
>
> http://lists.xymon.com/archive/2009-August/025750.html****
>
> ** **
>
> On Fri, Jul 19, 2013 at 3:20 PM, Gonzalez Peto <jkokino at gmail.com> wrote:*
> ***
>
>  OK. This is the right url of 1.1.4****
>
> http://communities.quest.com/docs/DOC-9191****
>
> ** **
>
> As I suspected the 2nd problem was actually a matter of capital vs small
> letter. The correct response from the cmd script from windows regarding the
> logical disks is "Ok" not "OK". So within this section****
>
> "REM Extract the status of each logical volume****
>
> REM -----------------------------------------"****
>
> ** **
>
> I changed these to "Ok"****
>
> IF NOT "!_log_result!"=="Ok" SET _status=red****
>
> IF NOT "!_log_result!"=="Ok" SET _message="At least one logical volume is
> in a failure state."****
>
> SET _ministatus=green****
>
> IF NOT "!_log_result!"=="Ok" SET _ministatus=red****
>
> ** **
>
> So, now remains point 1 as it will not load the cmd script. It is supposed
> to execute on a 5 min interval (for testing purposes).****
>
> ** **
>
> I'll dig.****
>
> ** **
>
> Please, if anyone can help, I would be grateful. Thank you****
>
> ** **
>
> ** **
>
> On Fri, Jul 19, 2013 at 2:58 PM, Gonzalez Peto <jkokino at gmail.com> wrote:*
> ***
>
>  I forgot to add:****
>
> ** **
>
> On the server side, I have xymon 4.2.3 and I just added ****
>
> "# raid" after the hostname entry I want to monitor in bb-hosts****
>
> ** **
>
> ** **
>
> On Fri, Jul 19, 2013 at 2:57 PM, Gonzalez Peto <jkokino at gmail.com> wrote:*
> ***
>
>  Hello****
>
> ** **
>
> I read many posts about raid, hp raid and etc.****
>
> http://lists.xymon.com/archive/2010-February/027413.html****
>
> ** **
>
> This pages says CheckHpRaid 1.1.4:****
>
> http://developer.sysco.ch/hobbit/****
>
> http://developer.sysco.ch/hobbit/CheckHpRaid.cmd****
>
> When I open it, it is 1.1.3****
>
> ** **
>
> I found 1.1.4 @ http://xymonton.org/ and works well however I dont know
> how to completely make it automatic****
>
> ** **
>
> Few issues:****
>
> 1. It seems that the cmd file will not be leaded automatically. If I
> execute it manually, then all is ok, and the xymon server****
>
> receives this info. Then it will not receive more automatically.****
>
> I placed the cmd file in C:\Program Files\BBWin\ext\****
>
> I also tried by placing the cmd file in the root folder****
>
> I edited the the BBWIN.cfg file****
>
> <load value="cmd /c C:\CheckHpRaid_1.1.4.cmd" timer="5m"/>****
>
> or ****
>
> <load value="cmd /c CheckHpRaid_1.1.4.cmd" timer="5m"/>****
>
> ** **
>
> I took cmd /c from the bbwin manual chm file which comes with 0.12 version
> ****
>
> ** **
>
> 2. Second problem is that the logical disk is reported ok and all
> individual physical disk are ok, and yet I get color red for the logical
> disk. :)****
>
> I am still trying to figure the source code where the if cases and
> statuses are wrong?****
>
> And of course it says "At least one logical volume is in a failure state."
> ****
>
>  ****
>
> Is anyone able to help?  Specially the first question - point 1. The other
> one I think I will figure it out sooner or later.****
>
> ** **
>
> ** **
>
> Thank you****
>
>  ** **
>
>  ** **
>
>  ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130722/95c7712a/attachment.html>


More information about the Xymon mailing list