Rāda ziņas ar etiķeti how to monitor samba share. Rādīt visas ziņas
Rāda ziņas ar etiķeti how to monitor samba share. Rādīt visas ziņas

piektdiena, 2013. gada 2. augusts

Zabbix monitor samba share

Zabbix can monitor samba deamon but cant say for sure, if samba is available from network. You can monitor if samba alive with such a script. So in /etc/zabbix/external directory must be file samba_big.sh with content below.

host=1.2.3.4
rez=`nmap --host-timeout 15000  -p 445  $host | grep 445/tcp | cut -f 2 -d ' '`
if [ "$rez" != "open" ]; then
  echo "0"
else
      echo "1"
fi