Monitoring de la connectivité à php-fpm et sogo
This commit is contained in:
parent
1473fd6f99
commit
f5134d6993
10 changed files with 46 additions and 17 deletions
|
@ -52,14 +52,14 @@ service("apache",
|
|||
|
||||
service('nginx')
|
||||
|
||||
service('sogo', pidf="sogo/sogo")
|
||||
service('sogo', pidf="sogo/sogo", extra=['if failed host localhost port 20000 protocol http timeout 20 seconds for 5 cycles then restart'])
|
||||
|
||||
service('ejabberd',
|
||||
pidf='ejabberd/ejabberd')
|
||||
|
||||
if has('nginx'):
|
||||
if has('php'):
|
||||
service(name='php5-fpm')
|
||||
service(name='php5-fpm', extra=["if failed host localhost port 80 protocol http and request '/php_ping' timeout 20 seconds for 5 cycles then restart"])
|
||||
if has('cgi'):
|
||||
service(name='fcgiwrap', pidp='/var/run/fcgiwrap.pids')
|
||||
|
||||
|
|
20
Python/etc/nginx/sites-available/status
Normal file
20
Python/etc/nginx/sites-available/status
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- mode: python; encoding: utf-8 -*-
|
||||
|
||||
info["owner"] = "root"
|
||||
info["group"] = "root"
|
||||
info["perms"] = 0644
|
||||
|
||||
comment_start = "#"
|
||||
|
||||
print """server {
|
||||
listen 127.0.0.1;
|
||||
server_name localhost;
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
}"""
|
||||
if has("php"):
|
||||
print ' include "snippets/php.conf";'
|
||||
print "}"
|
Loading…
Add table
Add a link
Reference in a new issue