Shinken version 1.0.1

Shinken version 1.0.1 jpp

J'ai un peu délaissé SHINKEN (Nagios "like") depuis un certain temps. Or la version 1 est sortie et j'ai vite téléchargé la version 1.0.1 depuis leur site.

Le tarball a un peu grossi et je décidé de l'installer dans une machine virtuelle "vierge". J'ai installé une Debian stable depuis une image cd CD et effectué immédiatement une mise à jour complète avec le couple magique : 
apt-get update 
apt-get upgrade

Il est nécessaire de charger les packages "lsb" afin que le script "install.py" puisse repérer la distribution que vous utilisez :
apt-get install lsb lsb-core
Après avoir récupéré le tarball de Shinken "détarez" le dans un répertoire tranquille pour pouvoir jouer à votre aise.
Vous pourrez alors lancer  le script d'installation nommé, comme par hasard, "install". L'installation des assez bavarde mais très explicative et fort bien faite, allez c'est parti ;
./install -i
 > Found installation parameters
 --> ETC=/usr/local/shinken/etc
 --> VAR=/usr/local/shinken/var
 --> LIBEXEC=/usr/local/shinken/libexec
 --> TARGET=/usr/local/shinken
 > Do you want to reuse those parameters ?
 
Je réponds "Y"
 
 Verifying compatible distros
+--------------------------------------------------------------------------------
 > Found DEBIAN (Debian 6 i686)
 > Version checking for Debian is not needed
+--------------------------------------------------------------------------------
| Checking for existing installation
+--------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
| Checking prerequisites
+--------------------------------------------------------------------------------
 > Checking for wget : OK
 > Checking for sed : OK
 > Checking for awk : OK
 > Checking for grep : OK
 > Checking for python : OK
 > Checking for bash : OK
 > Package build-essential already installed 
 > Installing libperl-dev 
 > Installing python-setuptools 
 > Installing libsqlite3-dev 
 > Installing python-dev 
 > Installing sqlite3 
 > Installing nmap 
 > Installing unzip 
 > Installing libmysqlclient-dev 
 > Module paramiko (paramiko) not found. Installing...
> Module netifaces (netifaces) not found. Installing...
 > Module simplejson (simplejson) not found. Installing...
 > Module pysqlite found.
 > Module MySQL_python (MySQLdb) not found. Installing...
 > Module pymongo (pymongo) not found. Installing...
 > Module pyro4 (pyro) not found. Installing...
+--------------------------------------------------------------------------------
| Creating user
+--------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
| Relocate source tree to /usr/local/shinken
+--------------------------------------------------------------------------------
 > relocating macro /usr/local/shinken/install.d/tools/macros/ces_enable_retention.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/ces_enable_ndo.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/enable_retention_mongo.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/control_satelites.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/ces_add_satellite_tagged_poller.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/ces_add_satellite_poller.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/enable_log_mongo.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/enable_npcd.macro
 > relocating macro /usr/local/shinken/install.d/tools/macros/enable_retention.macro
> Processing ./etc/resource.cfg
 > Processing ./etc/shinken-specific.cfg
 > Processing ./etc/shinken-specific.cfg.orig
 > Processing ./external_commands/PROCESS_HOST_CHECK_RESULT.sh
 > Processing ./FROM_NAGIOS_TO_SHINKEN
 > Processing ./install./install -p nagios-plugins
+--------------------------------------------------------------------------------
| Install nagios plugins
+--------------------------------------------------------------------------------
 > Installing prerequisites
 > Getting nagios-plugins archive
 > Extract archive content 
 > Configure source tree
 > Building ....
 > Installing
 > Processing ./install.d/shinken.conf
 > Processing ./install.d/tools/macros/control_satelites.macro
 > Processing ./install.d/tools/macros/enable_log_mongo.macro
 > Processing ./install.d/tools/macros/enable_npcd.macro
 > Processing ./install.d/tools/macros/enable_retention.macro
 > Processing ./install.d/tools/macros/enable_retention_mongo.macro
 > Processing ./libexec/vmware_discovery_runner.py
 > Processing ./README
 > Processing ./README.rst
 > Processing ./shinken/modules/npcdmod_broker.py
 > Processing ./shinken/objects/config.py
+--------------------------------------------------------------------------------
| Set some configuration directives
+--------------------------------------------------------------------------------
 > Processing /usr/local/shinken/etc/brokerd.ini
 > Going to /usr/local/shinken
 > Setting workdir to /usr/local/shinken/var in /usr/local/shinken/etc/brokerd.ini
 > Setting user to shinken in /usr/local/shinken/etc/brokerd.ini
 > Setting group to shinken in /usr/local/shinken/etc/brokerd.ini
 > Processing /usr/local/shinken/etc/pollerd.ini
 > Going to /usr/local/shinken
 > Setting workdir to /usr/local/shinken/var in /usr/local/shinken/etc/pollerd.ini
 > Setting user to shinken in /usr/local/shinken/etc/pollerd.ini
 > Setting group to shinken in /usr/local/shinken/etc/pollerd.ini
 > Processing /usr/local/shinken/etc/reactionnerd.ini
 > Going to /usr/local/shinken
 > Setting workdir to /usr/local/shinken/var in /usr/local/shinken/etc/reactionnerd.ini
 > Setting user to shinken in /usr/local/shinken/etc/reactionnerd.ini
 > Setting group to shinken in /usr/local/shinken/etc/reactionnerd.ini
 > Processing /usr/local/shinken/etc/receiverd.ini
 > Going to /usr/local/shinken
 > Setting workdir to /usr/local/shinken/var in /usr/local/shinken/etc/receiverd.ini
 > Setting user to shinken in /usr/local/shinken/etc/receiverd.ini
 > Setting group to shinken in /usr/local/shinken/etc/receiverd.ini
 > Processing /usr/local/shinken/etc/schedulerd.ini
 > Going to /usr/local/shinken
 > Setting workdir to /usr/local/shinken/var in /usr/local/shinken/etc/schedulerd.ini
 > Setting user to shinken in /usr/local/shinken/etc/schedulerd.ini
 > Setting group to shinken in /usr/local/shinken/etc/schedulerd.ini./install -p nagios-plugins
+--------------------------------------------------------------------------------
| Install nagios plugins
+--------------------------------------------------------------------------------
 > Installing prerequisites
 > Getting nagios-plugins archive
 > Extract archive content 
 > Configure source tree
 > Building ....
 > Installing 
 > Enable retention for broker scheduler and arbiter
+--------------------------------------------------------------------------------
| Applying various fixes
+--------------------------------------------------------------------------------
 > Starting shinken
Starting scheduler: 
Starting poller: 
Starting reactionner: ./install -p nagios-plugins
+--------------------------------------------------------------------------------
| Install nagios plugins
+--------------------------------------------------------------------------------
 > Installing prerequisites
 > Getting nagios-plugins archive
 > Extract archive content 
 > Configure source tree
 > Building ....
 > Installing
.
Starting broker: 
.
Starting receiver: 
.
Starting arbiter: 
.
+------------------------------------------------------------------------------
| Shinken is now installed on your server 
| The install location is : /usr/local/shinken
| The configuration folder is : /usr/local/shinken/etc
| The Web Interface is available at : http://localhost:7767
| The default credentials for the webui are admin/admin
| You can now learn how to configure shinken at : http://www.shinken-monitoring.org/wiki
+------------------------------------------------------------------------------
 > updated configuration of module[5] passwd=/usr/local/shinken/etc/htpasswd.users
 
Ce script est une petite merveille, il faut tout le boulot a notre place ! Shinken est même lancé sans problèmes brut de fonderie. Maintenant voyons si l'accès HTTP fonctionne :
lsof -Pn | grep TCP | grep 7767
python    13442    shinken   11u     IPv4      39347      0t0        TCP *:7767 (LISTEN)
Tout semble pour le mieux : on lance le browser et on se retrouve devant un écran de login avec un beau logo Shinken, user/mot de passe admin/admin et hop c'est parti ...
L'écran suivant nous donne déjà 5 problèmes détectés, mince de quoi s'agit-il ?
Ah, les plugins ne sont pas chargés, et Shinken nous prévient gentiment qu'il ne trouve pas les plugins dont il a besoin ! Il commence son boulot.
En fait je n'ai pas bien lu la doc car le script "install" permet de récupérer automatiquement ces petites bêtes utiles (cf install -h), je lance donc :
./install -p nagios-plugins
+--------------------------------------------------------------------------------
| Install nagios plugins
+--------------------------------------------------------------------------------
 > Installing prerequisites
 > Getting nagios-plugins archive
 > Extract archive content 
 > Configure source tree
 > Building ....
 > Installing
Retournons maintenant voir l'interface WEB. Après moins d'une minute quelques informations sont dèjà passées au vert les autres ont un cycle de test un peu plus long et passent au vert dans les minutes suivantes.
Sauf l'indicateur "LocalCpu" qui reste obsitnément en "no such file or directory" ... en effet le script cherché "check_cpu" n'existe pas dans le répertoire des plugins.
En cherchant un peu sur internet j'ai trouve (https://code.google.com/p/nagios-plugins-shamil/source/browse/trunk/by_others/c…) un plugin qui se rapproche de celui demandé. Ce script demande l'installation ddu package "sysstat" et la modification du fichier "commands.cfg" en changeant "check_cpu" pas "check_cpu.sh", on redémarre ensuite Shinken.
Et ... tout est au vert sur la vue "all" et luxe suprême certains plugins montrent une petite barre d'utilisation, le swap vu par le plugin "LocalSwap" présente une belle barre d'utilisation :
 
Suite bientôt avec quelques images de l'interface "standard" de Shinken. 
Promesse de gascon, je n'ai pas eu le temps de faire un galop d'essai avec cette version, la suite en version 1.2.