Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_smb

Rating
8 votes
Favoured:
0
Hits
126741
Files:
FileDescription
check_smbcheck_smb
Nagios CSP

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!
Check anonymous listing of shares on SMB server
Checks anonymous listing of SMB shares with smbclient. C.f. check_disk_smb, which checks specific shares.
Reviews (7)
byW4rlock, October 10, 2013
1 of 1 people found this review helpful
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`
byslimer, October 3, 2012
0 of 2 people found this review helpful
./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.
byMajed, August 26, 2011
0 of 1 people found this review helpful
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.
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/
bybitbox, May 18, 2010
0 of 1 people found this review helpful
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.
byzarko, March 25, 2010
0 of 1 people found this review helpful
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