configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 26  →  ?path2? @ 27
/monit/debian/templates/samba
@@ -0,0 +1,32 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check file smbd_bin with path /usr/sbin/smbd
if failed uid root then unmonitor
if failed gid root then unmonitor
group samba
check process smbd with pidfile /var/run/samba/smbd.pid
start program = "/etc/init.d/samba restart"
stop program = "/etc/init.d/samba stop"
if failed host 127.0.0.1 port 139 type TCP then restart
# if 5 restarts within 5 cycles then timeout
depends on smbd_bin
group samba
check process nmbd with pidfile /var/run/samba/nmbd.pid
group samba
start program = "/etc/init.d/samba restart"
stop program = "/etc/init.d/samba 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
depends on nmbd_bin
check file nmbd_bin with path /usr/sbin/nmbd
group samba
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor