Installation d’Icinga-mobile

Icinga vient d’ouvrir un dépôt git pour une version mobile de l’interface web d’Icinga.

Pré-requis

Vous devez avoir une installation d’Icinga-web fonctionnelle.

Il faut récupérer Icinga-mobile sur le dépôt GIT :

git clone git://git.icinga.org/icinga-mobile.git

Ensuite, on se rend dans le répertoire d’Icinga-mobile :

cd icinga-mobile/

Nous devons lancer autoconf puis configure et enfin make :

autoconf
./configure  --with-web-user=www-data --with-web-group=www-data –with-web-apache-path=/etc/apache2/
make install
make install-apache-config #On installe la configuration d'Apache

Pour que le nouveau site soit pris en compte, il faut redémarrer le service Apache :

/etc/init.d/apache2 restart

Puis il faut modifier le fichier « /usr/local/icinga-web/app/modules/AppKit/config/auth.xml » pour autoriser l’authentification par clé. Dans ce fichier, vous devez chercher la partie suivante :

<ae:parameter name="auth_key">
   <ae:parameter name="auth_module">AppKit</ae:parameter>
   <ae:parameter name="auth_provider">Auth.Provider.AuthKey</ae:parameter>
   <ae:parameter name="auth_enable">false</ae:parameter>
   <ae:parameter name="auth_authoritative">true</ae:parameter>
</ae:parameter>

Et changer la ligne :

   <ae:parameter name="auth_enable">false</ae:parameter>

en :

   <ae:parameter name="auth_enable">true</ae:parameter>

Une fois la modification faite, il faut supprimer le cache des fichiers de configuration :

/usr/local/icinga-web/bin/clearcache.sh

Pour que le site Icinga-mobile puisse avoir accès au contenu d’Icinga-web, il faut rajouter un utilisateur avec comme mode d’authentification « auth_key » :

Sur votre téléphone allez à l’adresse suivante http://monserveur/icinga-mobile , vous devriez arriver sur l’écran suivant :

C’est normal, nous n’avons pas encore configuré Icinga-mobile, vous devez aller dans l’onglet « Config » et renseigner l’adresse de votre serveur Icinga-web et la clé d’authentification créée plus haut :

Appuyez sur le bouton « Save ».

Si tout va bien, vous devriez arriver sur l’écran suivant :

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.