Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
ppe_s2_mission_9 [2018/03/27 07:46] e_lucyppe_s2_mission_9 [2018/04/05 12:35] (Version actuelle) – modification externe 127.0.0.1
Ligne 102: Ligne 102:
  
 {{ :serveur_munin_surveiller2.png?200 |}} {{ :serveur_munin_surveiller2.png?200 |}}
 +
 +**__3ème étape : Configuration de cron pour munin__**
  
 Puis nous initialisons crontab pour qu'il lance toute les 5 minutes une vérification des serveurs qu'il supervise. Puis nous initialisons crontab pour qu'il lance toute les 5 minutes une vérification des serveurs qu'il supervise.
Ligne 107: Ligne 109:
 Pour cela il faut faire cette commande : **"/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi"** Pour cela il faut faire cette commande : **"/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi"**
  
-Puis nous allons configurer la sonde du serveur et client.+**__4ème étape : Configuration des sondes Serveur Client__**  
 + 
 +Puis nous allons configurer la sonde du serveur et du client. 
 + 
 +__**Sonde du serveur :**__ 
 + 
 +            host_name       serveur.m2l.org    #Nom de la machine 
 +            allow ^127\.0\.0\.1$               #IP local 
 +            allow ^172\.20\.4\.1$              #IP du serveur de supervision 
 +            allow ^172\.20\.1\.1$              #Ip superviser 
 +            allow ^172\.20\.2\.1$              #Ip superviser 
 +            allow ^172\.20\.3\.1$              #Ip superviser 
 +            allow ^172\.20\.4\.1$              #Ip superviser 
 +            allow ^172\.20\.5\.1$              #Ip superviser 
 +            allow ^172\.20\.6\.1$              #Ip superviser 
 +            allow ^172\.20\.7\.1$              #Ip superviser 
 +            allow ^172\.20\.8\.1$              #Ip superviser 
 +            allow ^172\.20\.9\.1$              #Ip superviser 
 +            allow ^172\.20\.2\.254$           #Ip superviser (Routeur) 
 + 
 +**__Sonde du client :__** 
 + 
 +            host_name       client.m2l.org     #Nom de la machine 
 +            allow ^172\.20\.4\.1$            #IP du serveur de supervision 
 + 
 +Puis nous allons initialisé munin. 
 + 
 +Avec la commande suivante : **"/etc/init.d/munin-node start"** 
 + 
 +Puis vérifiez que le port 4949 et ouvert en tapant cette commande : **"netstat -nat"** 
 + 
 +{{ :netstat_nat_4949.png?400 |}} 
 + 
 +__**5ème étape : Configuration de l'interface web**__ 
 + 
 +Pour commencer ajouter la machine munin a votre zone, ici ajout de la ligne **"munin IN CNAME www"** pour déclarer que munin est un enregistrement de nom canonique) de la machine www. 
 + 
 +Crée le fichier **"munin.conf"** dans le répertoire **"/etc/apache2/sites-available"**. Entrez les ligne de déclaration d'une VHOST, ici : 
 + 
 +    <VirtualHost *:80>  
 +            ServerAdmin webmaster@m2l.org 
 +            ServerName m2l.org 
 +            ServerAlias munin.m2l.org 
 +            DocumentRoot /var/www/munin/ 
 +            ErrorLog /var/cache/munin/www/logs/error.log  
 +            CustomLog /var/cache/munin/www/logs/access.log combined 
 +            <Directory /var/www/munin/> 
 +                      Require all granted 
 +            </Directory> 
 +     </VirtualHost> 
 + 
 +{{ :munin.conf.png?400 |}} 
 + 
 +Puis il faut activé la VHOST avec la commande **"a2ensite munin.conf"**. 
 + 
 +Une fois activé, vérifier que le fichier **"/etc/munin/apache24.conf"** contient Alias "**/munin /var/www/munin"**. 
 + 
 +Si c'est la cas, crée un lien symbolique entre le fichier de configuration de l'interface web de munin et apache : 
 + 
 +**"ln -s /etc/munin/apache24.conf /etc/apache2/conf-enabled/apache24.conf"**. 
 + 
 +Modifier le fichier **"/etc/munin/apache24.conf"** pour tenir compte de la spécifité Apache 2.4. 
 + 
 +                  <Directory /var/www/munin> 
 +                          Require all granted 
 +                          Options FollowSymLinks SymLinksIfOwnerMatch 
 +                 </Directory> 
 + 
 +Faire de même avec le paragraphe : 
 + 
 +                 <Location /munin-cgi/munin-cgi-graph> 
 +                          Require all granted 
 +                          Options FollowSymLinks SymLinksIfOwnerMatch 
 +                          ... 
 +                 </Location> 
 + 
 +{{ :munin_apache24.conf.png?400 |}} 
 + 
 +Enfin il faut redémarer le service apache: **"/etc/init.d/apache2 restart"**. 
 + 
 +**__6ème étape : Test de configuration de Munin__** 
 + 
 +^  Commande teste  ^  Machine Source  ^  Résultat Normal 
 +^  Acceder a la page avec l'addresse **"http://munin.m2l.org"**.  |  Client  |  OUI  | 
 +^  ping -c4 www.munin.m2l.org  |  Client  |  OUI  | 
 +^  Acceder a la page avec l'addresse **"172.20.4.1/munin"**  |  Client  |  OUI  | 
 + 
 +{{ :connection_172.20.4.1.png?400 |}} 
 + 
 +{{ :interface_munin.png?400 |}} 
Error: Class "dokuwiki\Menu\KiwikiGo" not found

Error: Class "dokuwiki\Menu\KiwikiGo" not found

An unforeseen error has occured. This is most likely a bug somewhere.

More info has been written to the DokuWiki error log.