Hello ,

monit config:

check file error_log with path /var/log/httpd/error_log
    start program = "/etc/init.d/httpd start" 
    stop program = "/etc/init.d/httpd stop" 
    if match 'signal Segmentation fault' then restart
    if match 'exit signal Aborted' then restart
    if match 'server reached MaxClients setting' then restart
    if 5 restarts within 10 cycles then exec "/bin/bash -c '/usr/bin/monit 
unmonitor error_log && /bin/sleep 3600 && /usr/bin/monit monitor error_log'"


i try echo "signal Segmentation fault TEST2" >> /var/log/httpd/error_log

[MSK Dec 14 00:54:16] error    : 'error_log' content match [signal Segmentation 
fault TEST2]
[MSK Dec 14 00:54:17] info     : 'error_log' trying to restart
[MSK Dec 14 00:54:17] info     : 'error_log' stop: /etc/init.d/httpd
[MSK Dec 14 00:54:17] info     : 'error_log' start: /etc/init.d/httpd


httpd stoped, but NOT starting again !!!



С уважением,
 Бондарев Сергей
 ООО Фирма "Техно-Р" 
 т. +7(4732)539954                                 mailto:[email protected]


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to