Projet

Général

Profil

Actions

From source » Historique » Révision 21

« Précédent | Révision 21/129 (diff) | Suivant »
Patrice Nadeau, 2015-01-02 17:19


{{TOC}}

h1. From source

L'installation à partir des sources permet

  • d'avoir la version la plus récente
  • n'est pas relier à une plate-forme spécifique (i686 vs x86_64 vs ARM)

Les test ont été fait à partir d'un BeagleBone Black sous openSUSE 13.2.

h2. Prérequis

Installer les utilitaires pour la compilation :


zypper install make gcc

h2. Fichiers

Télécharger


mkdir ~/tmp
cd ~/tmp
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz
wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz

h2. Création de l'usager et groupe


useradd nagios
groupadd nagcmd
/usr/sbin/groupadd nagios
usermod -a -G nagcmd nagios
usermod -a -G nagios nagios

h2. Nagios Core

h3. Compilation


cd ~/tmp/nagios-4.0.8
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-commandmode
make install-config
make install-webconf

h3. Configuration de l'usager web


htpasswd2 -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
systemctl restart apache2

La page est disponible à http://server.domain/nagios

h3. Services


systemctl enable nagios
systemctl start nagios

h2. Nagios Plugins

h3. Compilation


cd ~/tmp/nagios-plugin
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

Mis à jour par Patrice Nadeau il y a environ 10 ans · 21 révisions