monit sous Open ne semble pas arriver se connecter en TCP...
darcs-hash:20060307102423-d1718-19b842d13a83376fdf1239a82b3a5d0e32b135c4.gz
This commit is contained in:
parent
bf028a8db3
commit
e6a9eda00b
1 changed files with 4 additions and 4 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue