Outils personnels

Installation de Shinken sur une Debian : Différence entre versions

De wikiGite

Ligne 5 : Ligne 5 :
 
  Configuration file folder : /etc/shinken
 
  Configuration file folder : /etc/shinken
 
  Log file : /var/lib/shinken/nagios.log
 
  Log file : /var/lib/shinken/nagios.log
−
Shinken startup script : /etc/init.d/shinken
 
−
Thruk web interface URL : http://<hostname>:3000
 
  
−
Pour relancer Shinken:
+
Pour relancer Shinken: /etc/init.d/shinken restart
−
/etc/init.d/shinken restart
 
  
 
------------------------------------------------------------------------
 
------------------------------------------------------------------------
  
−
If you follow these instructions, here's what you'll end up with:
+
Installation des pré-requis :
 +
apt-get install python python-dev python-setuptools pyro libgd2-xpm-dev git-core
  
−
Shinken and the plugins will be installed underneath
+
Se logguer en tant que root :
−
  ”/usr/local/shinken”
+
  su -
  
−
Required Packages
+
Création de l'utilisateur shinken (avec le mot de passe) :
−
sudo apt-get install python pyro git-core python-setuptools
 
−
apt-get install python python-dev python-setuptools pyro libgd2-xpm-dev nagios-plugins git-core
 
−
 
 
−
Create Account Information
 
−
 
 
−
Become the root user.
 
−
sudo su -
 
−
 
 
−
Create a new shinken user account and give it a password.
 
 
  /usr/sbin/useradd -m shinken
 
  /usr/sbin/useradd -m shinken
 
  passwd shinken
 
  passwd shinken
  
−
On Ubuntu server edition (9.10 and possible newer versions), you will need to also add a shinken group (it's not created by default). You should be able to skip this step on desktop editions of Ubuntu.
+
Facultatif :
 
  /usr/sbin/groupadd shinken
 
  /usr/sbin/groupadd shinken
 
  /usr/sbin/usermod -G shinken shinken
 
  /usr/sbin/usermod -G shinken shinken
−
 
−
Add the apache user to this group to allow external commands to be send from the web interface.
 
 
  /usr/sbin/usermod -G shinken www-data
 
  /usr/sbin/usermod -G shinken www-data
  
−
Download Shinken and the Plugins
+
Téléchargement de Shinken et des plugins :
−
 
 
−
Create a directory for storing the downloads.
 
 
  mkdir ~/downloads
 
  mkdir ~/downloads
 
  cd ~/downloads
 
  cd ~/downloads
  
−
Download the source code of Shinken and the Shinken plugins (visit http://www.nagios.org/download/ for links to the latest versions of the plugins). At the time of writing, the latest versions plugins were 1.4.13.
 
 
  git clone git://shinken.git.sourceforge.net/gitroot/shinken/shinken
 
  git clone git://shinken.git.sourceforge.net/gitroot/shinken/shinken
  
−
Install Shinken (repasser en utilisateur normal)
+
Installation de Shinken :
−
cd shinken
 
 
  python setup.py install --install-scripts=/usr/bin
 
  python setup.py install --install-scripts=/usr/bin
  
−
Don't start Shinken yet - there's still more that needs to be done…
+
Installation des plugins Nagios :
−
Customize Configuration
+
apt-get install nagios-plugins
−
 
 
−
Sample configuration files have now been installed in the ”/etc/shinken/” directory. These sample files should work fine for getting started with Shinken. You'll need to make just one change before you proceed…
 
−
Install the Nagios Plugins to use with Shinken
 
−
 
 
−
You can download plugins from source, but your debian-like administrator will just will you :
 
 
  cp libexec/* /usr/lib/nagios/plugins/
 
  cp libexec/* /usr/lib/nagios/plugins/
  
−
Start Shinken
+
Configuration du lancement automatique de Shinken au démarrage du système :
−
 
 
−
Configure Shinken to automatically start when the system boots.
 
 
  ln -s /etc/init.d/shinken-scheduler /etc/rcS.d/S98shinken-scheduler
 
  ln -s /etc/init.d/shinken-scheduler /etc/rcS.d/S98shinken-scheduler
 
  ln -s /etc/init.d/shinken-poller /etc/rcS.d/S98shinken-poller
 
  ln -s /etc/init.d/shinken-poller /etc/rcS.d/S98shinken-poller
Ligne 69 : Ligne 45 :
 
  ln -s /etc/init.d/shinken-arbiter /etc/rcS.d/S98shinken-arbiter
 
  ln -s /etc/init.d/shinken-arbiter /etc/rcS.d/S98shinken-arbiter
  
−
Verify the sample Shinken configuration files.
+
Vérification des fichiers de configuration de Shinken :
 
  /usr/bin/shinken-arbiter -v -c /etc/shinken/nagios.cfg -c /etc/shinken/shinken-specific.cfg
 
  /usr/bin/shinken-arbiter -v -c /etc/shinken/nagios.cfg -c /etc/shinken/shinken-specific.cfg
  
−
If there are no errors, start Shinken.
+
Démarrage de Shinken :
 
  /etc/init.d/shinken-scheduler start
 
  /etc/init.d/shinken-scheduler start
 
  /etc/init.d/shinken-poller start
 
  /etc/init.d/shinken-poller start

Version du 31 mai 2011 à 15:09

Version Arch & Perl

perl -e 'use Config; print "$Config{archname} \n"'
perl -e 'use Config; print "$Config{version} \n"'
Configuration file folder : /etc/shinken
Log file : /var/lib/shinken/nagios.log

Pour relancer Shinken: /etc/init.d/shinken restart


Installation des pré-requis :

apt-get install python python-dev python-setuptools pyro libgd2-xpm-dev git-core

Se logguer en tant que root :

su -

Création de l'utilisateur shinken (avec le mot de passe) :

/usr/sbin/useradd -m shinken
passwd shinken

Facultatif :

/usr/sbin/groupadd shinken
/usr/sbin/usermod -G shinken shinken
/usr/sbin/usermod -G shinken www-data

Téléchargement de Shinken et des plugins :

mkdir ~/downloads
cd ~/downloads
git clone git://shinken.git.sourceforge.net/gitroot/shinken/shinken

Installation de Shinken :

python setup.py install --install-scripts=/usr/bin

Installation des plugins Nagios :

apt-get install nagios-plugins
cp libexec/* /usr/lib/nagios/plugins/

Configuration du lancement automatique de Shinken au démarrage du système :

ln -s /etc/init.d/shinken-scheduler /etc/rcS.d/S98shinken-scheduler
ln -s /etc/init.d/shinken-poller /etc/rcS.d/S98shinken-poller
ln -s /etc/init.d/shinken-reactionner /etc/rcS.d/S98shinken-reactionner
ln -s /etc/init.d/shinken-broker /etc/rcS.d/S98shinken-broker
ln -s /etc/init.d/shinken-arbiter /etc/rcS.d/S98shinken-arbiter

Vérification des fichiers de configuration de Shinken :

/usr/bin/shinken-arbiter -v -c /etc/shinken/nagios.cfg -c /etc/shinken/shinken-specific.cfg

Démarrage de Shinken :

/etc/init.d/shinken-scheduler start
/etc/init.d/shinken-poller start
/etc/init.d/shinken-broker start
/etc/init.d/shinken-reactionner start
/etc/init.d/shinken-arbiter start