[monit] rajout de nginx
Ignore-this: 9a741a3d0ba8e1fcd5f4a7ac835392c C'était déjà géré sur komaz et routeur. On l'étend à irc (webirc) et o2 (intranet). darcs-hash:20130123224830-28565-a168dee60af56c840e4e2834af72c276cfc71a08.gz
This commit is contained in:
parent
7b8e0ab05d
commit
09c05265f7
2 changed files with 12 additions and 7 deletions
|
@ -13,6 +13,7 @@
|
||||||
<!-- <Group name="ups-monitor"/> -->
|
<!-- <Group name="ups-monitor"/> -->
|
||||||
<Group name="firmware-bnx2"/>
|
<Group name="firmware-bnx2"/>
|
||||||
<Group name="vlan-ens"/>
|
<Group name="vlan-ens"/>
|
||||||
|
<Group name="nginx" comment="Proxy web et pages déco"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="charybde"
|
<Group name="charybde"
|
||||||
|
@ -197,6 +198,7 @@
|
||||||
profile="true">
|
profile="true">
|
||||||
<Group name="crans-squeeze"/>
|
<Group name="crans-squeeze"/>
|
||||||
<Group name="domu"/>
|
<Group name="domu"/>
|
||||||
|
<Group name="nginx" comment="Pour web-irc.crans.org" />
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="xmpp"
|
<Group name="xmpp"
|
||||||
|
@ -276,6 +278,7 @@
|
||||||
profile="true">
|
profile="true">
|
||||||
<Group name="crans-squeeze"/>
|
<Group name="crans-squeeze"/>
|
||||||
<Group name="domu"/>
|
<Group name="domu"/>
|
||||||
|
<Group name="nginx" comment="Pour l'intranet"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="munin"
|
<Group name="munin"
|
||||||
|
@ -371,6 +374,7 @@
|
||||||
<Group name="vlan-ens"/>
|
<Group name="vlan-ens"/>
|
||||||
<Group name="dns-secondary"/>
|
<Group name="dns-secondary"/>
|
||||||
<Group name="dnssec-validation"/>
|
<Group name="dnssec-validation"/>
|
||||||
|
<Group name="nginx" comment="Proxy web et pages déco"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="puppet"
|
<Group name="puppet"
|
||||||
|
@ -552,6 +556,10 @@
|
||||||
<Bundle name="isc-dhcp-server" />
|
<Bundle name="isc-dhcp-server" />
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
<Group name="nginx">
|
||||||
|
<Bundle name="nginx" />
|
||||||
|
</Group>
|
||||||
|
|
||||||
<!-- +==========+ -->
|
<!-- +==========+ -->
|
||||||
<!-- | Services | -->
|
<!-- | Services | -->
|
||||||
<!-- +==========+ -->
|
<!-- +==========+ -->
|
||||||
|
@ -645,12 +653,14 @@
|
||||||
<Group name="dns-server"/>
|
<Group name="dns-server"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
|
||||||
<Group name="dns-secondary-no-forward"
|
<Group name="dns-secondary-no-forward"
|
||||||
comment="un serveur DNS secondaire sans forward de l'association"
|
comment="un serveur DNS secondaire sans forward de l'association"
|
||||||
category="dns">
|
category="dns">
|
||||||
<Group name="dns-server"/>
|
<Group name="dns-server"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
|
||||||
<Group name="dns-tv"
|
<Group name="dns-tv"
|
||||||
comment="le serveur DNS de la ferme"
|
comment="le serveur DNS de la ferme"
|
||||||
category="dns">
|
category="dns">
|
||||||
|
|
|
@ -50,6 +50,8 @@ service("apache",
|
||||||
],
|
],
|
||||||
max_restart=3)
|
max_restart=3)
|
||||||
|
|
||||||
|
service('nginx')
|
||||||
|
|
||||||
service("at",
|
service("at",
|
||||||
init="atd",
|
init="atd",
|
||||||
pidf="atd")
|
pidf="atd")
|
||||||
|
@ -229,13 +231,6 @@ if hostname in ['routeur']:
|
||||||
@ stop program = "/etc/init.d/igmpproxy stop"
|
@ stop program = "/etc/init.d/igmpproxy stop"
|
||||||
@ if 5 restarts within 5 cycles then timeout
|
@ if 5 restarts within 5 cycles then timeout
|
||||||
@
|
@
|
||||||
if hostname in ['routeur', 'komaz']:
|
|
||||||
@# nginx
|
|
||||||
@check process nginx with pidfile /var/run/nginx.pid
|
|
||||||
@ start program = "/etc/init.d/nginx start"
|
|
||||||
@ stop program = "/etc/init.d/nginx stop"
|
|
||||||
@ if 5 restarts within 5 cycles then timeout
|
|
||||||
@
|
|
||||||
|
|
||||||
# on ne monitore pas les disques de canard
|
# on ne monitore pas les disques de canard
|
||||||
if hostname in ['canard'] :
|
if hostname in ['canard'] :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue