User Tools

Site Tools


doc:appunti:linux:sa:monit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
doc:appunti:linux:sa:monit [2013/05/03 11:55] – [Configurazione di monit] niccolodoc:appunti:linux:sa:monit [2013/05/29 17:19] – [Configurazione di monit] niccolo
Line 62: Line 62:
 </code> </code>
  
-Ecco quindi una configurazione che insiste più a lungo per riavviare il servizio e che esegue una azione drastica (**''killall -9''**) se il restart fallisce per 4 volte:+Ecco quindi una configurazione che insiste più a lungo per riavviare il servizio e che esegue una azione drastica (**''killall -9''**) se il restart fallisce per 4 volte. Attenzione che il ''killall'' deve uccidere sia i processi chiamati **''spamd''** che i processi chiamati **''spamd child''**:
  
 <file> <file>
Line 68: Line 68:
    start program = "/etc/init.d/spamassassin start"     start program = "/etc/init.d/spamassassin start" 
    stop  program = "/etc/init.d/spamassassin stop" with timeout 60 seconds    stop  program = "/etc/init.d/spamassassin stop" with timeout 60 seconds
-   if 4 restarts within 4 cycles then exec "/usr/bin/killall -9 spamd"+   if 4 restarts within 4 cycles then exec "/usr/bin/killall -9 --regexp 'spamd\b.*'"
    if 10 restarts within 10 cycles then timeout    if 10 restarts within 10 cycles then timeout
    ...    ...
doc/appunti/linux/sa/monit.txt · Last modified: 2016/04/26 09:22 by niccolo