Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_smb
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Checks anonymous listing of SMB shares with smbclient. C.f. check_disk_smb, which checks specific shares.
Reviews (7)
If you get
./check_smb_share: line 11: ./utils.sh: No such file or directory
then you have to move the script to the Nagios libexec dir, because it uses the utils.sh from there
Or you change the Progpath on line 8 manually
I had to change Line 7 from
PROGNAME=`/bin/basename $0`
to
PROGNAME=`/usr/bin/basename $0`
./check_smb_share: line 11: ./utils.sh: No such file or directory
then you have to move the script to the Nagios libexec dir, because it uses the utils.sh from there
Or you change the Progpath on line 8 manually
I had to change Line 7 from
PROGNAME=`/bin/basename $0`
to
PROGNAME=`/usr/bin/basename $0`
./check_smb_share: line 11: ./utils.sh: No such file or directory
byhypertone, January 26, 2012
0 of 1 people found this review helpful
This is just what I was looking for. It does require the tweak mwrenfo suggested to work with Server 2008.
though it doesn't work directly from nagios like i though i does check linux servers through nrpe gives:
OK Domain=[PLG] OS=[Unix] Server=[Samba 3.4.12]
had to use another plugin to check specific shares.
OK Domain=[PLG] OS=[Unix] Server=[Samba 3.4.12]
had to use another plugin to check specific shares.
bymwrenfro, June 18, 2010
0 of 1 people found this review helpful
If you're using Server 2008R2, it appears that it doesn't like check_smb using $HOSTADDRESS$. Use $HOSTNAME$ instead, and it should work.
http://blogs.cae.tntech.edu/mwr/2010/06/17/nagios-check_smb-and-windows-server-2008r2/
http://blogs.cae.tntech.edu/mwr/2010/06/17/nagios-check_smb-and-windows-server-2008r2/
This works like a charm for windows machines, but I have two servers on my network which run linux and different versions of samba. Both are configured with security = ads and guest login doesn't seem to work under this condition. This is not a problem of this plugin though, but it would be nice to have a way to check these types of server as well.
Hi there
Great work of using ‘smbclient’ for testing samba functionality.
The thing is that plugin works perfect from CLI but Nagios gives me “CRITICAL SMB anon access: “.
Appreciate any idea/suggestion.
Thanks in advance.
Zarko
Great work of using ‘smbclient’ for testing samba functionality.
The thing is that plugin works perfect from CLI but Nagios gives me “CRITICAL SMB anon access: “.
Appreciate any idea/suggestion.
Thanks in advance.
Zarko