[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Monitoring SMB shares
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Monitoring SMB shares
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Thu, 16 Jul 2009 16:36:16 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hLJQfW3Alr4Am12+oV84KTXwGiw5BBHkKnOj1HeaWrI=; b=vnYzDWyuDL3cYYPN50IGQ14Bbszas4C011QSM/C5G+67NXQszZDumOHN1jGQAJeWns z8eu5zgH7Zm9A9eRNTNeBpabQnC+ubQdKYVc2CVgvzjGcD9CU9sKQJp2QngtpQNw25QH Xs+HXjNFEImVL5taMjjPYUT+Y/B3DptbwXcks=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LlDbWqwSU/2nL80tkBkabMxuo+K1Qpdu/piNJSxwTPi1JTCT7Vrd80Zs1qIMvhPnjg NYRcoxuLYsngKl2Q/+EuEIrcZG0UpssufEGtoXo5DgQtXS1IwRhiM2/zb35hEHzeNQHE xuWxHFIwUacubgsTstxanuvZFhkbk8dcYA+hQ=
- References: <833FE11B4A07FD4789F720B6F915124F0786CA34A8 (at) HHCGVL-COMM01> <Pine.LNX.4.64.0907162108490.30236 (at) pal34.desy.de> <833FE11B4A07FD4789F720B6F915124F0786CA34A9 (at) HHCGVL-COMM01> <Pine.LNX.4.64.0907162136290.2010 (at) pal34.desy.de> <833FE11B4A07FD4789F720B6F915124F0786CA34AB (at) HHCGVL-COMM01> <997a524e0907161315v36c8070cj413521c88b244842 (at) mail.gmail.com> <B2E7B803EDA3794288C49F0D4AADB16903E3F6B6 (at) CORPUSMX60C.corp.emc.com> <833FE11B4A07FD4789F720B6F915124F0786CA34AD (at) HHCGVL-COMM01>
Take a look at the bbhostgrep manual page:
http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html
<http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html>Use that
in the external script to extract the bb-hosts entries that contain your
'smb' keyword,
Ralph Mitchell
On Thu, Jul 16, 2009 at 4:21 PM, Harold J. Ballinger <
hballinger (at) heritage-healthcare.com> wrote:
> 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.
>
>
>
> 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.
>
>
>
> I just don’t know:
>
> 1) where these network tests are defined
>
> 2) how to define a new network test “smb” to use a specific script
>
> 3) 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
>
>
>
> Thanks!
>
>
>
> *From:* shea_greg (at) emc.com [mailto:shea_greg (at) emc.com]
> *Sent:* Thursday, July 16, 2009 4:35 PM
> *To:* hobbit (at) hswn.dk
> *Cc:* shea_greg (at) emc.com
>
> *Subject:* RE: [hobbit] Monitoring SMB shares
>
>
>
> What I've found is that the BBEXT variable in bbdef.sh was not the
> preferred way to run external scripts,
>
> but to use bb-bbexttab instead. The format of the bb-bbexttab "localhost :
> : bb-wcheck.pl;900" meant
>
> upon startup run this extension script every 900 seconds.
>
>
>
> So Ralph is right on with the hobbitlaunch.cfg or cron suggestions
>
>
>
> Hope this helps
>
> Greg Shea
>
> EMC Corporation
>
>
>
> *From:* Ralph Mitchell [mailto:ralphmitchell (at) gmail.com]
> *Sent:* Thursday, July 16, 2009 4:15 PM
> *To:* hobbit (at) hswn.dk
> *Subject:* Re: [hobbit] Monitoring SMB shares
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> Ralph Mitchell
>
>
>
> On Thu, Jul 16, 2009 at 2:51 PM, Harold J. Ballinger <
> hballinger (at) heritage-healthcare.com> wrote:
>
> 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?
>
>
> -----Original Message-----
> From: Martin Flemming [mailto:martin.flemming (at) desy.de]
>
> Sent: Thursday, July 16, 2009 3:37 PM
> To: 'hobbit (at) hswn.dk'
>
> Subject: RE: [hobbit] Monitoring SMB shares
>
>
>
> Grrmph, you're right :-(
>
>
> On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
>
> > 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.
> >
> > -----Original Message-----
> > From: Martin Flemming [mailto:martin.flemming (at) desy.de]
> > Sent: Thursday, July 16, 2009 3:09 PM
> > To: hobbit (at) hswn.dk
> > Subject: Re: [hobbit] Monitoring SMB shares
> >
> >
> > maybe this
> >
> > http://xymonton.trantor.org/doku.php/monitors:samba_servers
> >
> > cheers,
> > martin
> >
> > On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
> >
> >> I want a "shares" column to show up for each file server that has smb
> shares indicating whether or not the shares are accessible.
> >>
> >> 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
> >>
> >> Any help would be appreciated.
> >>
> >> Thanks!
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe (at) hswn.dk
> >
> >
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe (at) hswn.dk
> >
> >
> >
>
> Gruss
>
> Martin Flemming
>
>
> ______________________________________________________
> Martin Flemming
> DESY / IT office : Building 2b / 008a
> Notkestr. 85 phone : 040 - 8998 - 4667
> 22603 Hamburg mail : martin.flemming (at) desy.de
> ______________________________________________________
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>