This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
munin [2020/08/03 14:20] willy |
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 143: | Line 143: | ||
} | } | ||
</code> | </code> | ||
+ | |||
+ | ==== Aperçu ==== | ||
+ | |||
+ | DNS queries by status | ||
+ | |||
+ | {{ ::screenshot_2020-08-03_at_18.24.10.png?direct&400 |}} | ||
+ | |||
+ | DNS queries by type | ||
+ | |||
+ | {{ :screenshot_2020-08-03_at_18.24.33.png?direct&400 |}} | ||
Line 150: | Line 160: | ||
* Installer les paquets: | * Installer les paquets: | ||
* munin-node | * munin-node | ||
- | * Créer une configuration locale dans /etc/munin/munin-conf.d/cmnog-node.conf . Le plus important étant que le fichier dans ce repertoire se termine par .conf. | + | * Créer une configuration locale dans ''/etc/munin/munin-conf.d/cmnog-node.conf'' . Le plus important étant que le fichier dans ce repertoire se termine par .conf. Il faut rajouter autant d'entrées qu'il faut par serveur |
Ex: | Ex: | ||
Line 162: | 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-) |