monit sous Open ne semble pas arriver se connecter en TCP...

darcs-hash:20060307102423-d1718-19b842d13a83376fdf1239a82b3a5d0e32b135c4.gz
This commit is contained in:
bernat 2006-03-07 11:24:23 +01:00
parent bf028a8db3
commit e6a9eda00b

View file

@ -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'