###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
check file smbd_bin with path /usr/sbin/smbd
group samba
if failed uid root then alert
if failed gid root then alert
check process smbd with pidfile /var/run/samba/smbd.pid
group samba
depends on smbd_bin
start program = "/etc/init.d/smbd restart"
stop program = "/etc/init.d/smbd stop"
if failed host 127.0.0.1 port 139 type TCP then restart
# if 5 restarts within 5 cycles then timeout
check process nmbd with pidfile /var/run/samba/nmbd.pid
group samba
depends on nmbd_bin
start program = "/etc/init.d/nmbd restart"
stop program = "/etc/init.d/nmbd stop"
if failed host 127.0.0.1 port 138 type UDP then restart
if failed host 127.0.0.1 port 137 type UDP then restart
# if 5 restarts within 5 cycles then timeout
check file nmbd_bin with path /usr/sbin/nmbd
group samba
if failed checksum then alert
if failed permission 755 then alert
if failed uid root then alert
if failed gid root then alert
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.