<div dir="ltr">You are right Darin. Thank you. Very helpful. I didnt try the relative path.<div><br></div><div>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.<br>
<div><br></div><div>One question:</div></div><div>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:</div><div>Service raid on FOO is not OK : Service unavailable<br>
</div><div><br></div><div>Because I am not able to make the mail alert working while all other alerts in similar fashion do work. </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">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">address.com</a> DURATION>2m REPEAT=1 RECOVERED</div>
<div><br></div><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?</div><div><br>
</div><div>I tested with: .././bin/bbcmd hobbitd_alert --test foo raid</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">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">address.com</a>'</div></div><div><br></div><div>Do you folks have any idea where to read/look? examples?</div>
<div><br></div><div><br></div><div>Thanks</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 4:36 PM, Dugan, Darin D [ITSYS] <span dir="ltr"><<a href="mailto:dddugan@iastate.edu" target="_blank">dddugan@iastate.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><load value='cmd /c "..\ext\CheckHpRaid.cmd"' timer="3h"/><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Gonzalez Peto<br>
<b>Sent:</b> Friday, July 19, 2013 9:13 AM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] raid bbwin monitoring<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Brilliant.<u></u><u></u></p>
<div>
<p class="MsoNormal">The path was incorrect when I went into debug mode for bbwin.exe<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">This is the correct:<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><load value='cmd /c "C:\Program Files\BBWin\ext\CheckHpRaid.cmd"' timer="3h"/><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><load value='cmd /c "C:\Program Files (x86)\BBWin\ext\CheckHpRaid.cmd"' timer="3h"/><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Credits to Ray. Thank you<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://lists.xymon.com/archive/2009-August/025750.html" target="_blank">http://lists.xymon.com/archive/2009-August/025750.html</a><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 19, 2013 at 3:20 PM, Gonzalez Peto <<a href="mailto:jkokino@gmail.com" target="_blank">jkokino@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">OK. This is the right url of 1.1.4<u></u><u></u></p>
<div>
<p class="MsoNormal"><a href="http://communities.quest.com/docs/DOC-9191" target="_blank">http://communities.quest.com/docs/DOC-9191</a><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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<u></u><u></u></p>

</div>
<div>
<p class="MsoNormal">"REM Extract the status of each logical volume<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">REM -----------------------------------------"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I changed these to "Ok"<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">IF NOT "!_log_result!"=="Ok" SET _status=red<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">IF NOT "!_log_result!"=="Ok" SET _message="At least one logical volume is in a failure state."<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">SET _ministatus=green<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">IF NOT "!_log_result!"=="Ok" SET _ministatus=red<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'll dig.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Please, if anyone can help, I would be grateful. Thank you<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 19, 2013 at 2:58 PM, Gonzalez Peto <<a href="mailto:jkokino@gmail.com" target="_blank">jkokino@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">I forgot to add:<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">On the server side, I have xymon 4.2.3 and I just added <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">"# raid" after the hostname entry I want to monitor in bb-hosts<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 19, 2013 at 2:57 PM, Gonzalez Peto <<a href="mailto:jkokino@gmail.com" target="_blank">jkokino@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hello<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I read many posts about raid, hp raid and etc.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://lists.xymon.com/archive/2010-February/027413.html" target="_blank">http://lists.xymon.com/archive/2010-February/027413.html</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This pages says CheckHpRaid 1.1.4:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://developer.sysco.ch/hobbit/" target="_blank">http://developer.sysco.ch/hobbit/</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://developer.sysco.ch/hobbit/CheckHpRaid.cmd" target="_blank">http://developer.sysco.ch/hobbit/CheckHpRaid.cmd</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">When I open it, it is 1.1.3<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I found 1.1.4 @ <a href="http://xymonton.org/" target="_blank">
http://xymonton.org/</a> and works well however I dont know how to completely make it automatic<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Few issues:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">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<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">receives this info. Then it will not receive more automatically.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I placed the cmd file in C:\Program Files\BBWin\ext\<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I also tried by placing the cmd file in the root folder<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I edited the the BBWIN.cfg file<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><load value="cmd /c C:\CheckHpRaid_1.1.4.cmd" timer="5m"/><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">or <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><load value="cmd /c CheckHpRaid_1.1.4.cmd" timer="5m"/><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I took cmd /c from the bbwin manual chm file which comes with 0.12 version<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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. :)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I am still trying to figure the source code where the if cases and statuses are wrong?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">And of course it says "At least one logical volume is in a failure state." <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Is anyone able to help?  Specially the first question - point 1. The other one I think I will figure it out sooner or later.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you<u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>