User Tools

Site Tools


munin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
munin [2020/08/03 14:29]
willy résultat visuel
munin [2020/08/04 05:20]
willy
Line 45: Line 45:
   * /​etc/​apparmor.d/​usr.sbin.named   * /​etc/​apparmor.d/​usr.sbin.named
   * /​etc/​apparmor.d/​local/​usr.sbin.named   * /​etc/​apparmor.d/​local/​usr.sbin.named
-<code diff [enable_line_numbers="​true"​]>​+<code diff [enable_line_numbers="​true"​],​[highlight_lines_extra="​11,​19"]>
 root@vps2:/​etc#​ git diff 135f HEAD apparmor.d/​usr.sbin.named ​ root@vps2:/​etc#​ git diff 135f HEAD apparmor.d/​usr.sbin.named ​
 diff --git a/​apparmor.d/​usr.sbin.named b/​apparmor.d/​usr.sbin.named diff --git a/​apparmor.d/​usr.sbin.named b/​apparmor.d/​usr.sbin.named
Line 172: Line 172:
    ​address [2a01:​7e00::​f03c:​92ff:​fefb:​132d]    ​address [2a01:​7e00::​f03c:​92ff:​fefb:​132d]
    ​use_node_name yes    ​use_node_name yes
 +</​code>​
 +
 +===== Visualisation =====
 +
 +En fonction du serveur web installé, il faudra ajuster la configuration de votre environnement web.
 +
 +Si c'est //​apache2//,​ la configuration par défaut de munin, permet de consulter la page de monitoring à l'​adresse **http://​nom.de.mon.serveur.web/​munin** .
 +Des précisions se trouvent dans ''/​etc/​apache2/​conf-enabled/​munin.conf''​
 +<code apache [enable_line_numbers="​true"​]>​
 +# Munin configuration for apache2
 +#
 +# Apache can serve munin'​s files that are either statically generated
 +# (in a cron job) or generated on demand (via cgi).
 +# The relevant munin settings are "​html_strategy"​ and "​graph_strategy"​.
 +# The related apache settings can be adjusted at the end of this file.
 +#
 +# See /​usr/​share/​doc/​munin/​README.Debian for details.
 +
 +
 +# ***** COMMON SETTINGS FOR ALL STRATEGIES *****
 +
 +ScriptAlias /​munin-cgi/​munin-cgi-graph /​usr/​lib/​munin/​cgi/​munin-cgi-graph
 +Alias /​munin/​static/​ /​var/​cache/​munin/​www/​static/​
 +
 +<​Directory /​var/​cache/​munin/​www>​
 +    Require all granted
 +    Options None
 +    Order Allow,Deny
 +    Allow from all
 +</​Directory>​
 +
 +<​Directory /​usr/​lib/​munin/​cgi>​
 +    Require local
 +    <​IfModule mod_fcgid.c>​
 +        SetHandler fcgid-script
 +    </​IfModule>​
 +    <​IfModule !mod_fcgid.c>​
 +        SetHandler cgi-script
 +    </​IfModule>​
 +</​Directory>​
 +
 +
 +# ***** SETTINGS FOR CGI/CRON STRATEGIES *****
 +
 +# pick _one_ of the following lines depending on your "​html_strategy"​
 +# html_strategy:​ cron (default)
 +Alias /munin /​var/​cache/​munin/​www
 +# html_strategy:​ cgi (requires the apache module "​cgid"​ or "​fcgid"​)
 +#​ScriptAlias /munin /​usr/​lib/​munin/​cgi/​munin-cgi-html
 +</​code>​
 +
 +La directive à la ligne 20 permet d'​autoriser tout ou des préfixes IPv4/IPv6 précis.
 +
 +<code apache>
 +    Allow from 10.112.0.0/​13 2001:​db8:​cafe::/​48
 </​code>​ </​code>​
  
 Et voilà 8-) Et voilà 8-)
munin.txt · Last modified: 2020/08/07 10:35 by willy