[nginw, munin] Ajout d'un plugins pour nginx
This commit is contained in:
parent
3a575f8e57
commit
3f0f71ac1e
3 changed files with 18 additions and 0 deletions
|
@ -4,5 +4,11 @@
|
|||
<Path name="/etc/nginx/sites-available/status"/>
|
||||
<Path name="/etc/nginx/sites-enabled/status"/>
|
||||
<!-- 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>
|
||||
|
||||
|
|
|
@ -3,4 +3,7 @@
|
|||
<Action name="link-munin-plugins" timing="post" when="modified" status="check"
|
||||
command="python /usr/scripts/munin/scripts/link_plugins.py -f" />
|
||||
<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>
|
||||
|
|
|
@ -3,4 +3,13 @@
|
|||
<Group name="nginx">
|
||||
<Service type="deb" name="nginx" status="on"/>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue