Monitoring SMB shares
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!
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!
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Grrmph, you're right :-(
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
Essentially, I just need to be able to define a different type of network test / external test to be performed by the Xymon server itself. I can't figure out where the bbdef.sh logic went in the switch over to Hobbit/Xymon. Or maybe that type of testing isn't supported anymore with Hobbit/Xymon?
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:37 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] Monitoring SMB shares
Grrmph, you're right :-(
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I *think* that the BBEXT variable in BB is for a list of the external test scripts to be executed. Those would be migrated to the hobbitlaunch.cfg file. You can also use cron to execute the external script - I've done that successfully for years. You'll need to make sure your script executes with the hobbit/xymon environment. You can do that using bbcmd.
Ralph Mitchell
On Thu, Jul 16, 2009 at 2:51 PM, Harold J. Ballinger < hballinger at heritage-healthcare.com> wrote:
Essentially, I just need to be able to define a different type of network test / external test to be performed by the Xymon server itself. I can't figure out where the bbdef.sh logic went in the switch over to Hobbit/Xymon. Or maybe that type of testing isn't supported anymore with Hobbit/Xymon?
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:37 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] Monitoring SMB shares
Grrmph, you're right :-(
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
What I've found is that the BBEXT variable in bbdef.sh was not the preferred way to run external scripts,
but to use bb-bbexttab instead. The format of the bb-bbexttab "localhost : : bb-wcheck.pl;900" meant
upon startup run this extension script every 900 seconds.
So Ralph is right on with the hobbitlaunch.cfg or cron suggestions
Hope this helps
Greg Shea
EMC Corporation
From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: Thursday, July 16, 2009 4:15 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
I *think* that the BBEXT variable in BB is for a list of the external test scripts to be executed. Those would be migrated to the hobbitlaunch.cfg file.
You can also use cron to execute the external script - I've done that successfully for years. You'll need to make sure your script executes with the hobbit/xymon environment. You can do that using bbcmd.
Ralph Mitchell
On Thu, Jul 16, 2009 at 2:51 PM, Harold J. Ballinger <hballinger at heritage-healthcare.com> wrote:
Essentially, I just need to be able to define a different type of network test / external test to be performed by the Xymon server itself. I can't figure out where the bbdef.sh logic went in the switch over to Hobbit/Xymon. Or maybe that type of testing isn't supported anymore with Hobbit/Xymon?
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de]
Sent: Thursday, July 16, 2009 3:37 PM To: 'hobbit at hswn.dk'
Subject: RE: [hobbit] Monitoring SMB shares
Grrmph, you're right :-(
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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:
where these network tests are definedhow to define a new network test "smb" to use a specific scripthow to pass the results from this script to Xymon so that it will display separate results for each host in their own "smb" column
Thanks!
From: shea_greg at emc.com [mailto:shea_greg at emc.com] Sent: Thursday, July 16, 2009 4:35 PM To: hobbit at hswn.dk Cc: shea_greg at emc.com Subject: RE: [hobbit] Monitoring SMB shares
What I've found is that the BBEXT variable in bbdef.sh was not the preferred way to run external scripts, but to use bb-bbexttab instead. The format of the bb-bbexttab "localhost : : bb-wcheck.pl;900" meant upon startup run this extension script every 900 seconds.
So Ralph is right on with the hobbitlaunch.cfg or cron suggestions
Hope this helps Greg Shea EMC Corporation
From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: Thursday, July 16, 2009 4:15 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
I *think* that the BBEXT variable in BB is for a list of the external test scripts to be executed. Those would be migrated to the hobbitlaunch.cfg file.
You can also use cron to execute the external script - I've done that successfully for years. You'll need to make sure your script executes with the hobbit/xymon environment. You can do that using bbcmd.
Ralph Mitchell
On Thu, Jul 16, 2009 at 2:51 PM, Harold J. Ballinger <hballinger at heritage-healthcare.com<mailto:hballinger at heritage-healthcare.com>> wrote: Essentially, I just need to be able to define a different type of network test / external test to be performed by the Xymon server itself. I can't figure out where the bbdef.sh logic went in the switch over to Hobbit/Xymon. Or maybe that type of testing isn't supported anymore with Hobbit/Xymon?
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de<mailto:martin.flemming at desy.de>] Sent: Thursday, July 16, 2009 3:37 PM To: 'hobbit at hswn.dk<mailto:hobbit at hswn.dk>' Subject: RE: [hobbit] Monitoring SMB shares
Grrmph, you're right :-(
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de<mailto:martin.flemming at desy.de>] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk<mailto:hobbit at hswn.dk> Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk<mailto:hobbit-unsubscribe at hswn.dk>
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk<mailto:hobbit-unsubscribe at hswn.dk>
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de<mailto:martin.flemming at desy.de>
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk<mailto:hobbit-unsubscribe at hswn.dk>
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk<mailto:hobbit-unsubscribe at hswn.dk>
Take a look at the bbhostgrep manual page: http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html
<http://www.xymon.org/hobbit/help/manpages/man1/bbhostgrep.1.html>Use that in the external script to extract the bb-hosts entries that contain your 'smb' keyword,
Ralph Mitchell
On Thu, Jul 16, 2009 at 4:21 PM, Harold J. Ballinger < hballinger at heritage-healthcare.com> wrote:
The problem is that I then have to manage my tests in two locations – once in the bb-hosts and then I have to write them all out again inside the script that is run by cron. This would be very inefficient and isn’t a very pretty solution.
I wanted a way of defining an indicator/testname that could be inserted into each host entry in bb-hosts (just like all the other network tests are done) and have the system recognize that it should run the test against that host. For example, if I add “ftp” in my bb-hosts file, the system is smart enough to call the ftp test and run it against that specific host automatically. I want to have a way of defining a new “smb” test that can be indicated in the bb-hosts just like any other network test and that would automatically be run against those hosts in the same way that other network tests are run.
I just don’t know:
where these network tests are definedhow to define a new network test “smb” to use a specific scripthow to pass the results from this script to Xymon so that it willdisplay separate results for each host in their own “smb” column
Thanks!
*From:* shea_greg at emc.com [mailto:shea_greg at emc.com] *Sent:* Thursday, July 16, 2009 4:35 PM *To:* hobbit at hswn.dk *Cc:* shea_greg at emc.com
*Subject:* RE: [hobbit] Monitoring SMB shares
What I've found is that the BBEXT variable in bbdef.sh was not the preferred way to run external scripts,
but to use bb-bbexttab instead. The format of the bb-bbexttab "localhost : : bb-wcheck.pl;900" meant
upon startup run this extension script every 900 seconds.
So Ralph is right on with the hobbitlaunch.cfg or cron suggestions
Hope this helps
Greg Shea
EMC Corporation
*From:* Ralph Mitchell [mailto:ralphmitchell at gmail.com] *Sent:* Thursday, July 16, 2009 4:15 PM *To:* hobbit at hswn.dk *Subject:* Re: [hobbit] Monitoring SMB shares
I *think* that the BBEXT variable in BB is for a list of the external test scripts to be executed. Those would be migrated to the hobbitlaunch.cfg file.
You can also use cron to execute the external script - I've done that successfully for years. You'll need to make sure your script executes with the hobbit/xymon environment. You can do that using bbcmd.
Ralph Mitchell
On Thu, Jul 16, 2009 at 2:51 PM, Harold J. Ballinger < hballinger at heritage-healthcare.com> wrote:
Essentially, I just need to be able to define a different type of network test / external test to be performed by the Xymon server itself. I can't figure out where the bbdef.sh logic went in the switch over to Hobbit/Xymon. Or maybe that type of testing isn't supported anymore with Hobbit/Xymon?
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de]
Sent: Thursday, July 16, 2009 3:37 PM To: 'hobbit at hswn.dk'
Subject: RE: [hobbit] Monitoring SMB shares
Grrmph, you're right :-(
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I looked at that too, but it looks like that is a client side test because it has a portion that you load on the client and a portion that you load on the server.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Gruss
Martin Flemming
Martin Flemming DESY / IT office : Building 2b / 008a Notkestr. 85 phone : 040 - 8998 - 4667 22603 Hamburg mail : martin.flemming at desy.de
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 24, 2009 9:09 AM To: hobbit at hswn.dk 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 !
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 24, 2009 9:09 AM To: hobbit at hswn.dk 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 !
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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
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 causeTo unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Thursday, July 30, 2009 11:27 AM To: hobbit at hswn.dk 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 24, 2009 9:09 AM To: hobbit at hswn.dk 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 !
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Thursday, July 30, 2009 11:27 AM To: hobbit at hswn.dk 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 24, 2009 9:09 AM To: hobbit at hswn.dk 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. (888) 335-2620 | helpdesk (864) 224-3626 | office (864) 224-3093 | fax
Visit our website: www.heritage-healthcare.com
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org] Sent: Friday, July 17, 2009 3:32 PM To: hobbit at hswn.dk 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:doctor at makelofine.org] Sent: Thursday, July 16, 2009 5:56 PM To: hobbit at hswn.dk 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:martin.flemming at desy.de] Sent: Thursday, July 16, 2009 3:09 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Monitoring SMB shares
maybe this
http://xymonton.trantor.org/doku.php/monitors:samba_servers
cheers, martin
On Thu, 16 Jul 2009, Harold J. Ballinger wrote:
I want a "shares" column to show up for each file server that has smb shares indicating whether or not the shares are accessible.
In a perfect world, I would like to monitor these SMB shares from the xymon server itself vs from a client. In my mind, the xymon server would have a server side script that would allow me to add "shares:Public", "shares:Users", etc. to the listings in BB-HOSTS. In fact, I had found this solution on DeadCat called "shares" that is meant to be setup on a BB server. However, it mentioned editing bbdef.sh to include shares.sh in the BBEXT variable and I just didn't know where to do this in Xymon
Any help would be appreciated.
Thanks! To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 !
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 causeTo unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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"
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:doctor at makelofine.org] Sent: Friday, July 31, 2009 1:36 PM To: hobbit at hswn.dk 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"
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (5)
-
doctor@makelofine.org
-
hballinger@heritage-healthcare.com
-
martin.flemming@desy.de
-
ralphmitchell@gmail.com
-
shea_greg@emc.com