Re: Is anyone monitoring SAMBA?

Andreas Baetz <[email protected]> Tue, 14 Jan 2003 07:29:54 +0100
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
On Monday 13 January 2003 21:28, [email protected] wrote:
> Hi all,
> Is anyone monitoring samba? If so did you write your own plug-in? Did you
> download it? How does it work?

I have written a nagios plugin in Perl that checks for
the availability of shares and printers an Windows 
or Samba Servers using smbclient.

I'm using it for a while now in production with some NT servers.
You could test if it works well with samba, too. (It should, but I 
have not testet it).
I just sent it in to nagiosplug-devel.

from the code:
# this script checks for smb shares on a windows server
# the shares to check for are given with parameter "check"
# and can be Disks or Printers, depending on Parameter "type"
# type maybe "Disk" or "Printer"
# Return codes:
# "OK" if all tested shares are there
# "WARNING" if there are smbclient errors
# "CRITICAL"if at least one share is not listed at the queried server
# "UNKNOWN" if it doesn't get a response from the server within timeout

# example:
# check_smbshares.pl -H server -D Domain -U user -P Password -T type -C share1,share2

Andreas



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en