configuration-templates
/monit/debian/templates/samba |
@@ -10,8 +10,8 @@ |
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" |
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 |
|
@@ -18,8 +18,8 @@ |
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" |
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 |