configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 48  →  ?path2? @ 49
/monit/debian/templates/samba
@@ -3,30 +3,30 @@
###########################################################################
 
check file smbd_bin with path /usr/sbin/smbd
if failed uid root then unmonitor
if failed gid root then unmonitor
group samba
group samba
# if failed uid root then unmonitor
# if failed gid root then unmonitor
check process smbd with pidfile /var/run/samba/smbd.pid
group samba
depends on smbd_bin
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
depends on nmbd_bin
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
# if failed checksum then unmonitor
# if failed permission 755 then unmonitor
# if failed uid root then unmonitor
# if failed gid root then unmonitor