Norbert Vastagh <vasti...@gmail.com> <linux@mlf.linux.rulez.org> wrote:
> Majd beállítom a monit-nak, hogy ha nagyon felmegy a load, nyomjon egy > reboot-ot ;-) check process apache with pidfile /var/run/apache2.pid group www-data start program = "/etc/init.d/apache2 start" stop program = "/etc/init.d/apache2 stop" if cpu > 75% for 4 cycles then restart if totalmem > 2000 MB for 5 cycles then restart if children > 1150 then restart if loadavg(1min) greater than 20 for 2 cycles then restart ... Nem csak loadra lehet es nem csak rebootot :) A server-status-bol nezd meg, hogy kik es mit neznek es abbol is le tudsz esetleg vonni kovetkeztetest. Pl az apache stop-start helyett mondjuk wrappert, ami beteszi fileba a server-status dumpjat meg ezt-azt es csinal masik ezt-azt :) -- Udv: Erdelyi Gabor _________________________________________________ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux