SMB

check_smb

Description:

Check anonymous listing of shares on SMB server

Current Version

Last Release Date

June 23, 2009

Compatible With


Project Files
Project Notes
Checks anonymous listing of SMB shares with smbclient. C.f. check_disk_smb, which checks specific shares.
Reviews (7) Add a Review
basename & utils.sh
by W4rlock, October 31, 2013

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`



Error
by slimer, October 31, 2012

./check_smb_share: line 11: ./utils.sh: No such file or directory



Good simple plugin that does the job
by hypertone, January 31, 2012

This is just what I was looking for. It does require the tweak mwrenfo suggested to work with Server 2008.



works good
by Majed, August 31, 2011

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.



Possible fix for CRITICAL SMB anon access
by mwrenfro, June 30, 2010

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/



Nice and easy, but...
by bitbox, May 31, 2010

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.



Issue "CRITICAL SMB anon access"
by zarko, March 31, 2010

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



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (8)
Favorites
0
Views
126,610