Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
monitors:samba_servers [2014/02/23 09:08] – [Changelog] doctor_madness | monitors:samba_servers [2018/11/01 14:30] (current) – [Table] doktoil_makresh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Samba monitoring ====== | ====== Samba monitoring ====== | ||
- | ^ Author | [[ doctor@makelofine.org | Damien Martins ]] | | + | ^ Author |
- | ^ Compatibility | From Xymon 4.2.0 to Xymon 4.2.3 | | + | ^ Compatibility |
- | ^ Requirements | sh (or bash), samba tool suite for Uni* (smbclient, smbtree...) | | + | ^ Requirements |
- | ^ Download | https://www.makelofine.org/ | + | ^ Download |
- | ^ Last Update | 2009-11-21 | | + | ^ Last Update |
===== Description ===== | ===== Description ===== | ||
Line 12: | Line 12: | ||
===== Installation ===== | ===== Installation ===== | ||
=== Client side === | === Client side === | ||
+ | Install samba-tools for your distro. Name may vary, therefore check you have smbclient available. You will also require smbtree if you want to check unallowed SMB shares. | ||
Untar this package, put hobbit-samba.sh in $BBHOME/ext directory | Untar this package, put hobbit-samba.sh in $BBHOME/ext directory | ||
Put hobbit-samba.conf in $BBHOME/etc directory | Put hobbit-samba.conf in $BBHOME/etc directory | ||
Line 25: | Line 26: | ||
# | # | ||
# ALL THIS SCRIPT IS UNDER GPL LICENSE | # ALL THIS SCRIPT IS UNDER GPL LICENSE | ||
- | #Version 0.2.1 | + | #Version 0.2.3 |
# Title: | # Title: | ||
# Author: | # Author: | ||
- | # Date: | + | # Date: |
# Purpose: | # Purpose: | ||
# Platforms: Uni* having samba tools suite (smbclient, smbtree) | # Platforms: Uni* having samba tools suite (smbclient, smbtree) | ||
Line 40: | Line 41: | ||
# | # | ||
# History : | # History : | ||
- | # | + | # # - 23 feb 2014 - Damien Martins |
+ | # v0.2.3 | ||
# - 26 jul 2009 - Damien Martins | # - 26 jul 2009 - Damien Martins | ||
# v0.2.1 | # v0.2.1 | ||
Line 123: | Line 125: | ||
exit 1 | exit 1 | ||
fi | fi | ||
+ | if [ ! -f " | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | if [ ! -x " | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
#Infos for later releases | #Infos for later releases | ||
Line 232: | Line 243: | ||
RESTRICTED=$($GREP " | RESTRICTED=$($GREP " | ||
if [ " | if [ " | ||
+ | if [ ! -f " | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
+ | if [ ! -x " | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
restrict | restrict | ||
elif [ " | elif [ " |