Xymon Mailing List Archive search

Monitoring SMB shares

28 messages in this thread

list Harold J. Ballinger · Thu, 16 Jul 2009 15:03:09 -0400 ·
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!
list Martin Flemming · Thu, 16 Jul 2009 21:09:07 +0200 (CEST) ·
maybe this

http://xymonton.trantor.org/doku.php/monitors:samba_servers

cheers,
 	martin
quoted from Harold J. Ballinger

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!
list Harold J. Ballinger · Thu, 16 Jul 2009 15:30:11 -0400 ·
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.
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
list Harold J. Ballinger · Thu, 16 Jul 2009 15:32:55 -0400 ·
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
list Martin Flemming · Thu, 16 Jul 2009 21:37:04 +0200 (CEST) ·

Grrmph, you're right :-(
quoted from Harold J. Ballinger


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:user-f286aaa49a76@xymon.invalid]
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Harold J. Ballinger · Thu, 16 Jul 2009 15:51:04 -0400 ·
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?
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: Thursday, July 16, 2009 3:37 PM
To: 'user-ae9b8668bcde@xymon.invalid'
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:user-f286aaa49a76@xymon.invalid]
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Ralph Mitchell · Thu, 16 Jul 2009 15:15:15 -0500 ·
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 <
quoted from Harold J. Ballinger
user-fc4f93976dc8@xymon.invalid> 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:user-f286aaa49a76@xymon.invalid]
Sent: Thursday, July 16, 2009 3:37 PM
To: 'user-ae9b8668bcde@xymon.invalid'
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:user-f286aaa49a76@xymon.invalid]
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

list Greg Shea · Thu, 16 Jul 2009 16:35:15 -0400 ·
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
quoted from Ralph Mitchell

 
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid] 
Sent: Thursday, July 16, 2009 4:15 PM
To: user-ae9b8668bcde@xymon.invalid
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
<user-fc4f93976dc8@xymon.invalid> 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:user-f286aaa49a76@xymon.invalid]

Sent: Thursday, July 16, 2009 3:37 PM
To: 'user-ae9b8668bcde@xymon.invalid'

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:user-f286aaa49a76@xymon.invalid]
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Harold J. Ballinger · Thu, 16 Jul 2009 17:21:53 -0400 ·
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!
quoted from Greg Shea

From: user-762ee872a5a4@xymon.invalid [mailto:user-762ee872a5a4@xymon.invalid]
Sent: Thursday, July 16, 2009 4:35 PM
To: user-ae9b8668bcde@xymon.invalid
Cc: user-762ee872a5a4@xymon.invalid
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:user-00a5e44c48c0@xymon.invalid]
Sent: Thursday, July 16, 2009 4:15 PM
To: user-ae9b8668bcde@xymon.invalid
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 <user-fc4f93976dc8@xymon.invalid<mailto:user-fc4f93976dc8@xymon.invalid>> 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:user-f286aaa49a76@xymon.invalid<mailto:user-f286aaa49a76@xymon.invalid>]
Sent: Thursday, July 16, 2009 3:37 PM
To: 'user-ae9b8668bcde@xymon.invalid<mailto:user-ae9b8668bcde@xymon.invalid>'
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:user-f286aaa49a76@xymon.invalid<mailto:user-f286aaa49a76@xymon.invalid>]
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid<mailto:user-ae9b8668bcde@xymon.invalid>
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!
Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX

22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid<mailto:user-f286aaa49a76@xymon.invalid>

list Ralph Mitchell · Thu, 16 Jul 2009 16:36:16 -0500 ·
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 <
quoted from Harold J. Ballinger
user-fc4f93976dc8@xymon.invalid> 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:* user-762ee872a5a4@xymon.invalid [mailto:user-762ee872a5a4@xymon.invalid]
*Sent:* Thursday, July 16, 2009 4:35 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Cc:* user-762ee872a5a4@xymon.invalid

*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:user-00a5e44c48c0@xymon.invalid]
*Sent:* Thursday, July 16, 2009 4:15 PM
*To:* user-ae9b8668bcde@xymon.invalid
*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 <
user-fc4f93976dc8@xymon.invalid> 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:user-f286aaa49a76@xymon.invalid]

Sent: Thursday, July 16, 2009 3:37 PM
To: 'user-ae9b8668bcde@xymon.invalid'

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:user-f286aaa49a76@xymon.invalid]
Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

list dOCtoR MADneSs · Thu, 16 Jul 2009 23:56:19 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien
list Harold J. Ballinger · Fri, 17 Jul 2009 08:50:42 -0400 ·
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)
quoted from dOCtoR MADneSs

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien
list dOCtoR MADneSs · Fri, 17 Jul 2009 21:29:45 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

Hi,

I'm not very good in english, so I've a doubt about your request. So, are you saying you would like a feature to check if a list of client (not running xymon) can access your samba shares ? You wan to simulate connections on the server from a list of given IP's (or a whole network)  ?
If so, I should rewrite a whole new section, I can do next week.
If the client is running xymon client, you can use my script (it's shell langage, but I could write it in perl if needed). It tests connectivity to samba share using unix's smbclient and validate samba shares are accessible.

So, I wait for your answer to try to help you.
list dOCtoR MADneSs · Fri, 17 Jul 2009 21:32:28 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.
list Harold J. Ballinger · Mon, 20 Jul 2009 11:46:34 -0400 ·
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 
quoted from dOCtoR MADneSs


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.
list dOCtoR MADneSs · Mon, 20 Jul 2009 19:14:48 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.

ok I get it. i'll take a look this week on this script and I'll try to make it run with hobbit/xymon.
list dOCtoR MADneSs · Fri, 24 Jul 2009 15:08:31 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.

Hi,

I successfully used shares.sh script with xymon server 4.2.3. I didn't have to change anything in the code. The only things to do are :
-define SMBCLIENT, ACCOUNT, PASSWORD in shares.sh
-add shares section in bb-hosts, according to "Inscrutions" section
-add :
[shares]
         ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/local/xymon/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m
to xymon/server/etc/hobbitlaunch.cfg

Then reload server, and all is working !
list Harold J. Ballinger · Thu, 30 Jul 2009 10:35:06 -0400 ·
I tried this. Initially, I was getting an error in /var/log/hobbit/shares.log:

Could not start task shares using command '/usr/lib/hobbit/server/ext/shares.sh': Permission denied

I realized that the shares.sh execute permissions were not correct, so I used  CHMOD to change them.

I no longer get the errors in the shares.log, but I still have no shares column showing up for the hosts that have it listed in the bb-hosts file as shown below:
10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp
I guess my next step would be to try and run the shares.sh manually and see what kind of output or errors come up? Do I just need to su as the bb/hobbit user so that I'm running it as the bb user?
signature


 
Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----

quoted from dOCtoR MADneSs
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 24, 2009 9:09 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.

Hi,

I successfully used shares.sh script with xymon server 4.2.3. I didn't have to change anything in the code. The only things to do are :
-define SMBCLIENT, ACCOUNT, PASSWORD in shares.sh
-add shares section in bb-hosts, according to "Inscrutions" section
-add :
[shares]
         ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/local/xymon/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m
to xymon/server/etc/hobbitlaunch.cfg

Then reload server, and all is working !
list dOCtoR MADneSs · Thu, 30 Jul 2009 17:27:01 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
I tried this. Initially, I was getting an error in /var/log/hobbit/shares.log:

Could not start task shares using command '/usr/lib/hobbit/server/ext/shares.sh': Permission denied

I realized that the shares.sh execute permissions were not correct, so I used  CHMOD to change them.

I no longer get the errors in the shares.log, but I still have no shares column showing up for the hosts that have it listed in the bb-hosts file as shown below:
10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp
I guess my next step would be to try and run the shares.sh manually and see what kind of output or errors come up? Do I just need to su as the bb/hobbit user so that I'm running it as the bb user?


 Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 24, 2009 9:09 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.

Hi,

I successfully used shares.sh script with xymon server 4.2.3. I didn't have to change anything in the code. The only things to do are :
-define SMBCLIENT, ACCOUNT, PASSWORD in shares.sh
-add shares section in bb-hosts, according to "Inscrutions" section
-add :
[shares]
         ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/local/xymon/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m
to xymon/server/etc/hobbitlaunch.cfg

Then reload server, and all is working !

I didn't manage to test very deeply this plugin, but my short tests allowed me to get column and test results.
In order to have better informations, you  could add this line to the end of th e script :
echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE""
You will have informations in shares.log file and maybe you'll find the root cause
list Harold J. Ballinger · Thu, 30 Jul 2009 17:12:53 -0400 ·
I tried your suggestion and now I get the following lines in the shares.log:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date

• Harold Ballinger
quoted from dOCtoR MADneSs
 
I didn't manage to test very deeply this plugin, but my short tests allowed me to get column and test results.
In order to have better informations, you  could add this line to the end of th e script :
echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE""
You will have informations in shares.log file and maybe you'll find the root cause
list Harold J. Ballinger · Thu, 30 Jul 2009 17:17:08 -0400 ·
Looking at the code in shares.sh:
if test ! "$BBHOME"
then
	echo "Error BBHOME is not set"
	exit
else
	if test ! "$BBTMP"
	then
		. $BBHOME/etc/bbdef.sh
	fi
fi

I do not have a file $BBHOME/etc/bbdef.sh

It also mentions editing this file in the directions.

Is this something that needs to be edited/modified for use with Hobbit?
signature

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----

quoted from dOCtoR MADneSs
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 30, 2009 11:27 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I tried this. Initially, I was getting an error in /var/log/hobbit/shares.log:

Could not start task shares using command '/usr/lib/hobbit/server/ext/shares.sh': Permission denied

I realized that the shares.sh execute permissions were not correct, so I used  CHMOD to change them.

I no longer get the errors in the shares.log, but I still have no shares column showing up for the hosts that have it listed in the bb-hosts file as shown below:
10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp
I guess my next step would be to try and run the shares.sh manually and see what kind of output or errors come up? Do I just need to su as the bb/hobbit user so that I'm running it as the bb user?


 Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 24, 2009 9:09 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.

Hi,

I successfully used shares.sh script with xymon server 4.2.3. I didn't have to change anything in the code. The only things to do are :
-define SMBCLIENT, ACCOUNT, PASSWORD in shares.sh
-add shares section in bb-hosts, according to "Inscrutions" section
-add :
[shares]
         ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/local/xymon/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m
to xymon/server/etc/hobbitlaunch.cfg

Then reload server, and all is working !

I didn't manage to test very deeply this plugin, but my short tests allowed me to get column and test results.
In order to have better informations, you  could add this line to the end of th e script :
echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE""
You will have informations in shares.log file and maybe you'll find the root cause
list dOCtoR MADneSs · Fri, 31 Jul 2009 11:18:50 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
I tried your suggestion and now I get the following lines in the shares.log:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date

• Harold Ballinger
 
I didn't manage to test very deeply this plugin, but my short tests allowed me to get column and test results.
In order to have better informations, you  could add this line to the end of th e script :
echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE""
You will have informations in shares.log file and maybe you'll find the root cause
Hi,

Those lines seem very good. Format is correct, and if your xymon server is localhost, the server should receive the message. So the script is not the root cause, I think.
list dOCtoR MADneSs · Fri, 31 Jul 2009 11:27:47 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
Looking at the code in shares.sh:
if test ! "$BBHOME"
then
	echo "Error BBHOME is not set"
	exit
else
	if test ! "$BBTMP"
	then
		. $BBHOME/etc/bbdef.sh
	fi
fi

I do not have a file $BBHOME/etc/bbdef.sh

It also mentions editing this file in the directions.

Is this something that needs to be edited/modified for use with Hobbit?

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 30, 2009 11:27 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I tried this. Initially, I was getting an error in /var/log/hobbit/shares.log:

Could not start task shares using command '/usr/lib/hobbit/server/ext/shares.sh': Permission denied

I realized that the shares.sh execute permissions were not correct, so I used  CHMOD to change them.

I no longer get the errors in the shares.log, but I still have no shares column showing up for the hosts that have it listed in the bb-hosts file as shown below:
10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp
I guess my next step would be to try and run the shares.sh manually and see what kind of output or errors come up? Do I just need to su as the bb/hobbit user so that I'm running it as the bb user?


 Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 24, 2009 9:09 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The original test that worked for BB can be found at http://www.deadcat.net/viewfile.php?fileid=211 
It is "server side" and tests any hosts that are in your bbhosts file on your server. For example:

10.1.1.1	MYSERVER	# shares:USERS shares:PUBLIC ftp smtp

This would report in the "shares" column for the MYSERVER host and would contain info about the "USERS" and "PUBLIC" shares.

• Harold Ballinger
IT Coordinator
Heritage Healthcare, Inc.  (XXX) XXX-XXXX  | helpdesk
 (XXX) XXX-XXXX  | office
 (XXX) XXX-XXXX  | fax

Visit our website: www.heritage-healthcare.com 


-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Friday, July 17, 2009 3:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
I'm interested in testing from a location other than the client hosting the smb share since I want to be sure that the share is accessible as it would need to be in the real world (whether that be authentication, permissions, name resolution, connectivity, firewall/routing permissions, or back end services that host the service). Especially when dealing with DFS and clustering, I want to know that the user experience (10,000 foot view) is working vs a particular host's own checks against 127.0.0.1.

Your solution makes sense and it is a valid and well thought out test, but in my case, it only accounts for 70% of the possible failure points. (It would be like having the client ping 127.0.0.1 for the conn test in a routed environment - I know that the client is up and the ping service is responding, but I am missing a large piece of the puzzle.)

I'm looking for the solution because we had such a test when we were using Big Brother, but it no longer works since we migrated to hobbit/xymon. We have been able to migrate most other tests/capabilities directly from BB easily and I was hoping that it was just something simple that I had overlooked.

It has to be said that we have been much happier with Hobbit/Xymon than BB in all areas. I just don't like to let something "beat me" when it comes to technology. :-)

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] Sent: Thursday, July 16, 2009 5:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

Harold J. Ballinger a écrit :
The description made it sound like the column would be listed on the server that is doing the testing and not on the servers that are actually hosting the smb shares. If a share is down, I want the "red" to show up on the specific server that is hosting that service.

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: Thursday, July 16, 2009 3:09 PM
To: user-ae9b8668bcde@xymon.invalid
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!
Hi,

I'm the modest maker of the samba servers monitoring hosted on xymonton.trantor.org.
When I wrote this script, I tought it was a better to monitor samba shares with samba clients than monitoring from the server himself. Hence   it tests all the components needed to access the share : network, port accessibility (including firewall), and user authentication.
You can also run the script from your xymon server, because it include a client too.
So, the server can test itselfs without any problem. I'm open to any suggestion to add any feature, it should be very interesting. But i'm afraid i couldn't do anything in including it in xymon code. I don't know C or any low level langage.
I hope my little contribution could help you. If so, please give me informations about your software versions to add them in the know working section.

Regards,
Damien

PS : What BB test did you use to have this feature ? Many of the old BB tests just need a very few rewrite to work with hobbit/xymon. I can try to do it.

Hi,

I successfully used shares.sh script with xymon server 4.2.3. I didn't have to change anything in the code. The only things to do are :
-define SMBCLIENT, ACCOUNT, PASSWORD in shares.sh
-add shares section in bb-hosts, according to "Inscrutions" section
-add :
[shares]
         ENVFILE /usr/local/xymon/server/etc/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/local/xymon/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m
to xymon/server/etc/hobbitlaunch.cfg

Then reload server, and all is working !

I didn't manage to test very deeply this plugin, but my short tests allowed me to get column and test results.
In order to have better informations, you  could add this line to the end of th e script :
echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE""
You will have informations in shares.log file and maybe you'll find the root cause

Hi,

This code checks if the BBHOME variable is set. When xymon runs a script, it sets some values, including BBHOME. For hobbit/xymon compatibility, you could replace :
. $BBHOME/etc/bbdef.sh
with
. $BBHOME/etc/hobbitclient.cfg          # INCLUDE STANDARD DEFINITIONS

In your case, I suppose you declare the plugin with the following :
[shares]
         ENVFILE /usr/local/xymon/client/etc/hobbitclient.cfg
         CMD $PATH_TO_SERVER_EXT_DIR/shares.sh
         LOGFILE $/PATH_TO_SERVER_LOG_DIR/hobbitclient.log
         INTERVAL 5m
Please confirm this point or tell us the way you declared it.
list Harold J. Ballinger · Fri, 31 Jul 2009 12:32:52 -0400 ·
I have this in hobbitlaunch.cfg:
----------COPIED WITH NO EDITS-------------
[shares]
         ENVFILE /etc/hobbit/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/lib/hobbit/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m

It appears to be running since I get this in shares.log:
----------COPIED WITH NO EDITS-------------
/usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date

Should the line in the log above actually look like this instead:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status HHCGVL-FILE01.shares green 'date'

I don't see it sending across the hostname or status?
quoted from dOCtoR MADneSs

-----Original Message-----
Hi,

This code checks if the BBHOME variable is set. When xymon runs a script, it sets some values, including BBHOME. For hobbit/xymon compatibility, you could replace :
. $BBHOME/etc/bbdef.sh
with
. $BBHOME/etc/hobbitclient.cfg          # INCLUDE STANDARD DEFINITIONS

In your case, I suppose you declare the plugin with the following :
[shares]
        ENVFILE /usr/local/xymon/client/etc/hobbitclient.cfg
        CMD $PATH_TO_SERVER_EXT_DIR/shares.sh
        LOGFILE $/PATH_TO_SERVER_LOG_DIR/hobbitclient.log
        INTERVAL 5m
Please confirm this point or tell us the way you declared it.

list dOCtoR MADneSs · Fri, 31 Jul 2009 19:29:56 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
I have this in hobbitlaunch.cfg:
----------COPIED WITH NO EDITS-------------
[shares]
         ENVFILE /etc/hobbit/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/lib/hobbit/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m

It appears to be running since I get this in shares.log:
----------COPIED WITH NO EDITS-------------
/usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date

Should the line in the log above actually look like this instead:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status HHCGVL-FILE01.shares green 'date'

I don't see it sending across the hostname or status?

-----Original Message-----
  
Hi,

This code checks if the BBHOME variable is set. When xymon runs a script, it sets some values, including BBHOME. For hobbit/xymon compatibility, you could replace :
. $BBHOME/etc/bbdef.sh
with
. $BBHOME/etc/hobbitclient.cfg          # INCLUDE STANDARD DEFINITIONS

In your case, I suppose you declare the plugin with the following :
[shares]
        ENVFILE /usr/local/xymon/client/etc/hobbitclient.cfg
        CMD $PATH_TO_SERVER_EXT_DIR/shares.sh
        LOGFILE $/PATH_TO_SERVER_LOG_DIR/hobbitclient.log
        INTERVAL 5m
Please confirm this point or tell us the way you declared it.

it seems your script does not send the machine variable. Output must be
in this format :
bb $BBDISP STATUS $MACHINE.$TEST $COLOR $DATE

So, we must correct some code :
at the end, replace :
            $BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE"

with
            $BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date) $LINE"
and give me the new outputs in shares.log
list dOCtoR MADneSs · Fri, 31 Jul 2009 19:35:55 +0200 ·
quoted from dOCtoR MADneSs
dOCtoR MADneSs a écrit :
Harold J. Ballinger a écrit :
  
I have this in hobbitlaunch.cfg:
----------COPIED WITH NO EDITS-------------
[shares]
         ENVFILE /etc/hobbit/hobbitserver.cfg
         NEEDS hobbitd
         CMD /usr/lib/hobbit/server/ext/shares.sh
         LOGFILE $BBSERVERLOGS/shares.log
         INTERVAL 5m

It appears to be running since I get this in shares.log:
----------COPIED WITH NO EDITS-------------
/usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date

Should the line in the log above actually look like this instead:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status HHCGVL-FILE01.shares green 'date'

I don't see it sending across the hostname or status?

-----Original Message-----
      
Hi,

This code checks if the BBHOME variable is set. When xymon runs a script, it sets some values, including BBHOME. For hobbit/xymon compatibility, you could replace :
. $BBHOME/etc/bbdef.sh
with
. $BBHOME/etc/hobbitclient.cfg          # INCLUDE STANDARD DEFINITIONS

In your case, I suppose you declare the plugin with the following :
[shares]
        ENVFILE /usr/local/xymon/client/etc/hobbitclient.cfg
        CMD $PATH_TO_SERVER_EXT_DIR/shares.sh
        LOGFILE $/PATH_TO_SERVER_LOG_DIR/hobbitclient.log
        INTERVAL 5m
Please confirm this point or tell us the way you declared it.

it seems your script does not send the machine variable. Output must be
in this format :
bb $BBDISP STATUS $MACHINE.$TEST $COLOR $DATE

So, we must correct some code :
at the end, replace :
            $BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR  `date` $LINE"

with
            $BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date) $LINE"
and give me the new outputs in shares.log

I made a little mistake, you should use the provided correction, remove
the last line (echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR `date` $LINE"")
and add this line :
echo "$BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date)  $LINE""
just under :
$BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date)  $LINE"
list Harold J. Ballinger · Fri, 31 Jul 2009 15:04:10 -0400 ·
With those changes, I have the following now showing in the shares.log:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status HHCGVL-MONI03.shares Fri Jul 31 14:56:36 EDT 2009

HHCGVL-MONI03 is the name of the Xymon server, and not the name of one of the hosts as identified in bb-hosts that I want to be monitoring.

Will it matter that my bb-hosts uses "INCLUDE" for all actual hosts and that none of the hosts with the shares:PUBLIC, etc are listed in the actual bb-hosts file?
quoted from dOCtoR MADneSs

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] 
Sent: Friday, July 31, 2009 1:36 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

dOCtoR MADneSs a écrit :
I made a little mistake, you should use the provided correction, remove
the last line (echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR 
`date` $LINE"")
and add this line :
echo "$BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date)  $LINE""
just under :
$BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date)  $LINE"
list dOCtoR MADneSs · Sat, 01 Aug 2009 11:32:57 +0200 ·
quoted from Harold J. Ballinger
Harold J. Ballinger a écrit :
With those changes, I have the following now showing in the shares.log:

/usr/lib/hobbit/server/bin/bb 127.0.0.1 status HHCGVL-MONI03.shares Fri Jul 31 14:56:36 EDT 2009

HHCGVL-MONI03 is the name of the Xymon server, and not the name of one of the hosts as identified in bb-hosts that I want to be monitoring.

Will it matter that my bb-hosts uses "INCLUDE" for all actual hosts and that none of the hosts with the shares:PUBLIC, etc are listed in the actual bb-hosts file?

-----Original Message-----
From: dOCtoR MADneSs [mailto:user-d54077869176@xymon.invalid] 
Sent: Friday, July 31, 2009 1:36 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring SMB shares

dOCtoR MADneSs a écrit :
I made a little mistake, you should use the provided correction, remove
the last line (echo "$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR 
`date` $LINE"")
and add this line :
echo "$BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date)  $LINE""
just under :
$BB $BBDISP "status $MACHINE.shares $BGCOLOR  $(date)  $LINE"

Hi,

The output is not correct, the color (variable $BGCOLOR) is missing, and
that's why you don't have the column appearing. I'll take a deeper look
on the code to find why, and I'll give you a feedback when possible.

Regards