From e6a9eda00b9b60a0dff840d2f63777b8488a0c15 Mon Sep 17 00:00:00 2001 From: bernat Date: Tue, 7 Mar 2006 11:24:23 +0100 Subject: [PATCH] monit sous Open ne semble pas arriver se connecter en TCP... darcs-hash:20060307102423-d1718-19b842d13a83376fdf1239a82b3a5d0e32b135c4.gz --- monit/generate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monit/generate.py b/monit/generate.py index b974bf3a..f7adf050 100755 --- a/monit/generate.py +++ b/monit/generate.py @@ -174,11 +174,11 @@ def file_monitrc(hostname = host) : # apache sur ragnarok if hostname in ['ragnarok'] : config += '# apache\n' - config += 'check process apache with pidfile /var/www/logs/httpd.pid\n' - config += ' start program = "/usr/sbin/apachectl start"\n' + config += 'check process httpd with pidfile /var/www/logs/httpd.pid\n' + config += ' start program = "/bin/systrace -U -A /usr/sbin/httpd -DSSL"\n' config += ' stop program = "/usr/sbin/apachectl stop"\n' - config += ' if failed host localhost port 80 protocol http %s then restart\n' % timeout - config += ' if failed host localhost port 443 type tcpssl protocol http %s then restart\n' % timeout + #config += ' if failed host localhost port 80 protocol http %s then restart\n' % timeout + #config += ' if failed host localhost port 443 type tcpssl protocol http %s then restart\n' % timeout config += ' if cpu is greater than 60% for 2 cycles then alert\n' config += ' if cpu > 80% for 5 cycles then restart\n' config += ' if children > 100 then restart\n'