background preloader

Fusion

Facebook Twitter

Développer un plugin GLPI. Un plugin GLPI doit contenir deux fichiers de base (setup.php et hook.php) à la racine même du dossier. Ce fichier permet d'enregistrer la configuration minimum du plugin et de déclarer les classes primaires pour son fonctionnement. De nombreuses options sont disponibles, mais ne possédant pas de documentation officielle dessus, je vais rester très simpliste dans mon approche. La première fonction à créer est celle qui définit la version du plugin : plugin_version Sélectionnez Dans la variable 'minGlpiVersion', mettez la version avec laquelle vous développez votre plugin. Vous remarquerez que le titre de la fonction contient le nom du plugin. La fonction suivante vérifie les prérequis de version de GLPI. La troisième fonction obligatoire permet de vérifier la configuration initiale de votre installation de GLPI (ou autre).

Enfin, la dernière fonction est celle qui va initialiser les class du plugin. initialisation Les trois lignes suivantes instancient trois class différentes. Setup.php if (! Accueil [wiki monitoring-fr.org] Monitoring - Aperçu - Forge INDEPNET. Shinken_10min_start [Shinken] By following this tutorial, in 10 minutes you will have a fully installed monitoring system for your network. The very first step is to verify that your server meets the requirements . You can get familiar with the Shinken Architecture now, or after the installation. This will explain the software components and how they fit together. Ready? Let's go! Do not mix installation methods! The install script is located at the root of the Shinken sources. You can get the sources and launch the install script with just this command : curl -L | /bin/bash And jump to the “Start Shinken” part.

If you want to make it manually, go in the next step :) Download stable Shinken v1.0.1 tarball archive (or get the latest git snapshot ) and extract it somewhere: cd ~ wget tar -xvzf shinken-1.0.1.tar.gz cd ~/shinken-1.0.1 . Done! To start Shinken: /etc/init.d/shinken start But wait! To list the plugins and addons available: . . GLPI & Plugins. FusionInventory. GLPI - Gestionnaire libre de parc informatique.