[nginw, munin] Ajout d'un plugins pour nginx

This commit is contained in:
Valentin Samir 2013-06-15 12:21:27 +02:00
parent 3a575f8e57
commit 3f0f71ac1e
3 changed files with 18 additions and 0 deletions

View file

@ -4,5 +4,11 @@
<Path name="/etc/nginx/sites-available/status"/> <Path name="/etc/nginx/sites-available/status"/>
<Path name="/etc/nginx/sites-enabled/status"/> <Path name="/etc/nginx/sites-enabled/status"/>
<!-- Conf gérée à la main pour chaque service --> <!-- Conf gérée à la main pour chaque service -->
<Group name="munin-node">
<Action name="munin-node-restart"/>
<Path name="/etc/munin/plugins/nginx_status"/>
<Path name="/etc/munin/plugins/nginx_request"/>
<Package name="libwww-perl"/>
</Group>
</Bundle> </Bundle>

View file

@ -3,4 +3,7 @@
<Action name="link-munin-plugins" timing="post" when="modified" status="check" <Action name="link-munin-plugins" timing="post" when="modified" status="check"
command="python /usr/scripts/munin/scripts/link_plugins.py -f" /> command="python /usr/scripts/munin/scripts/link_plugins.py -f" />
<Service type="deb" name="munin-node" status="on"/> <Service type="deb" name="munin-node" status="on"/>
<Action name="munin-node-restart" timing="post"
when="modified" status="check"
command="/etc/init.d/munin-node restart"/>
</Rules> </Rules>

View file

@ -3,4 +3,13 @@
<Group name="nginx"> <Group name="nginx">
<Service type="deb" name="nginx" status="on"/> <Service type="deb" name="nginx" status="on"/>
<Path type="symlink" name="/etc/nginx/sites-enabled/status" to="../sites-available/status"/> <Path type="symlink" name="/etc/nginx/sites-enabled/status" to="../sites-available/status"/>
<Group name="munin-node">
<Path type="symlink" name="/etc/munin/plugins/nginx_request" to="/usr/share/munin/plugins/nginx_request"/>
<Path type="symlink" name="/etc/munin/plugins/nginx_status" to="/usr/share/munin/plugins/nginx_status"/>
</Group>
</Group>
<Group name="nginx" negate="true">
<Path type="nonexistent" name="/etc/munin/plugins/nginx_request"/>
<Path type="nonexistent" name="/etc/munin/plugins/nginx_status"/>
</Group>
</Rules> </Rules>