Take a look at the bbhostgrep manual page:<div><br></div><div>   <a href="http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html">http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html</a></div><div><br>
</div><div><a href="http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html"></a>Use that in the external script to extract the bb-hosts entries that contain your  'smb' keyword,</div><div><br></div><div>
Ralph Mitchell <br><br></div><div><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 4:21 PM, Harold J. Ballinger <span dir="ltr"><<a href="mailto:hballinger@heritage-healthcare.com">hballinger@heritage-healthcare.com</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><span style="font-size:11.0pt;color:#1F497D">The problem is that I then have to manage my tests in two
locations – once in the bb-hosts and then I have to write them all out
again inside the script that is run by cron. This would be very inefficient and
isn’t a very pretty solution. </span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">I wanted a way of defining an indicator/testname that could be
inserted into each host entry in bb-hosts (just like all the other network tests
are done) and have the system recognize that it should run the test against
that host. For example, if I add “ftp” in my bb-hosts file, the
system is smart enough to call the ftp test and run it against that specific host
automatically. I want to have a way of defining a new “smb” test
that can be indicated in the bb-hosts just like any other network test and that
would automatically be run against those hosts in the same way that other
network tests are run. </span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">I just don’t know:</span></p>

<p style="margin-left:22.5pt;text-indent:-.25in"><span style="font-size:11.0pt;color:#1F497D"><span>1)<span style="font:7.0pt "Times New Roman"">      </span></span></span><span style="font-size:11.0pt;color:#1F497D">where
these network tests are defined</span></p>

<p style="margin-left:22.5pt;text-indent:-.25in"><span style="font-size:11.0pt;color:#1F497D"><span>2)<span style="font:7.0pt "Times New Roman"">      </span></span></span><span style="font-size:11.0pt;color:#1F497D">how to
define a new network test “smb” to use a specific script</span></p>

<p style="margin-left:22.5pt;text-indent:-.25in"><span style="font-size:11.0pt;color:#1F497D"><span>3)<span style="font:7.0pt "Times New Roman"">      </span></span></span><span style="font-size:11.0pt;color:#1F497D">how
to pass the results from this script to Xymon so that it will display separate
results for each host in their own “smb” column</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Thanks!</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:shea_greg@emc.com" target="_blank">shea_greg@emc.com</a>
[mailto:<a href="mailto:shea_greg@emc.com" target="_blank">shea_greg@emc.com</a>] <br>
<b>Sent:</b> Thursday, July 16, 2009 4:35 PM<br>
<b>To:</b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b>Cc:</b> <a href="mailto:shea_greg@emc.com" target="_blank">shea_greg@emc.com</a></span></p><div><div></div><div class="h5"><br>
<b>Subject:</b> RE: [hobbit] Monitoring SMB shares</div></div><p></p>

</div>

</div><div><div></div><div class="h5">

<p> </p>

<p><span style="font-size:11.0pt;color:#1F497D">What I've found is that the BBEXT variable in bbdef.sh was not
the preferred way to run external scripts,</span></p>

<p><span style="font-size:11.0pt;color:#1F497D">but to use bb-bbexttab instead.  The format of the
bb-bbexttab "localhost : : bb-wcheck.pl;900" meant</span></p>

<p><span style="font-size:11.0pt;color:#1F497D">upon startup run this extension script every 900 seconds.</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">So Ralph is right on with the hobbitlaunch.cfg or cron
suggestions</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Hope this helps</span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Greg Shea</span></p>

<p><span style="font-size:11.0pt;color:#1F497D">EMC Corporation</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Ralph Mitchell
[mailto:<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>] <br>
<b>Sent:</b> Thursday, July 16, 2009 4:15 PM<br>
<b>To:</b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b>Subject:</b> Re: [hobbit] Monitoring SMB shares</span></p>

</div>

<p> </p>

<p>I *think* that the BBEXT variable in BB is for a list of the
external test scripts to be executed.  Those would be migrated to the
hobbitlaunch.cfg file.</p>

<div>

<p> </p>

</div>

<div>

<p>You can also use cron to execute the external script - I've
done that successfully for years.  You'll need to make sure your script
executes with the hobbit/xymon environment.  You can do that using bbcmd.</p>

<div>

<p> </p>

</div>

<div>

<p>Ralph Mitchell</p>

</div>

<div>

<p style="margin-bottom:12.0pt"> </p>

<div>

<p>On Thu, Jul 16, 2009 at 2:51 PM, Harold J. Ballinger <<a href="mailto:hballinger@heritage-healthcare.com" target="_blank">hballinger@heritage-healthcare.com</a>>
wrote:</p>

<p>Essentially, I just need to be able to define a different
type of network test / external test to be performed by the Xymon server itself.
I can't figure out where the bbdef.sh logic went in the switch over to
Hobbit/Xymon. Or maybe that type of testing isn't supported anymore with
Hobbit/Xymon?</p>

<div>

<p><br>
-----Original Message-----<br>
From: Martin Flemming [mailto:<a href="mailto:martin.flemming@desy.de" target="_blank">martin.flemming@desy.de</a>]</p>

</div>

<div>

<p>Sent: Thursday, July 16, 2009 3:37 PM<br>
To: '<a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a>'</p>

</div>

<div>

<div>

<p style="margin-bottom:12.0pt">Subject: RE: [hobbit]
Monitoring SMB shares<br>
<br>
<br>
<br>
Grrmph, you're right :-(<br>
<br>
<br>
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:<br>
<br>
> I looked at that too, but it looks like that is a client side test because
it has a portion that you load on the client and a portion that you load on the
server.<br>
><br>
> -----Original Message-----<br>
> From: Martin Flemming [mailto:<a href="mailto:martin.flemming@desy.de" target="_blank">martin.flemming@desy.de</a>]<br>
> Sent: Thursday, July 16, 2009 3:09 PM<br>
> To: <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
> Subject: Re: [hobbit] Monitoring SMB shares<br>
><br>
><br>
> maybe this<br>
><br>
> <a href="http://xymonton.trantor.org/doku.php/monitors:samba_servers" target="_blank">http://xymonton.trantor.org/doku.php/monitors:samba_servers</a><br>
><br>
> cheers,<br>
>       martin<br>
><br>
> On Thu, 16 Jul 2009, Harold J. Ballinger wrote:<br>
><br>
>> I want a "shares" column to show up for each file server
that has smb shares indicating whether or not the shares are accessible.<br>
>><br>
>> In a perfect world, I would like to monitor these SMB shares from the
xymon server itself vs from a client. In my mind, the xymon server would have a
server side script that would allow me to add "shares:Public",
"shares:Users", etc. to the listings in BB-HOSTS. In fact, I had
found this solution on DeadCat called "shares" that is meant to be
setup on a BB server. However, it mentioned editing bbdef.sh to include
shares.sh in the BBEXT variable and I just didn't know where to do this in
Xymon<br>
>><br>
>> Any help would be appreciated.<br>
>><br>
>> Thanks!<br>
><br>
> To unsubscribe from the hobbit list, send an e-mail to<br>
> <a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
><br>
><br>
><br>
> To unsubscribe from the hobbit list, send an e-mail to<br>
> <a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
><br>
><br>
><br>
<br>
Gruss<br>
<br>
       Martin Flemming<br>
<br>
<br>
______________________________________________________<br>
Martin Flemming<br>
DESY / IT          office : Building 2b / 008a<br>
Notkestr. 85       phone  : 040 - 8998 - 4667<br>
22603 Hamburg      mail   : <a href="mailto:martin.flemming@desy.de" target="_blank">martin.flemming@desy.de</a><br>
______________________________________________________<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a></p>

</div>

</div>

</div>

<p> </p>

</div>

</div>

</div></div></div>

</div>


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