Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Check anonymous listing of shares on SMB server
Current Version
Last Release Date
June 23, 2009
Owner
Nagios Exchange
Compatible With
Checks anonymous listing of SMB shares with smbclient. C.f. check_disk_smb, which checks specific shares.
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
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.
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/
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
You must be logged in to submit a review.
To:
From: