From source » Historique » Version 10
Patrice Nadeau, 2015-01-02 16:48
| 1 | 1 | Patrice Nadeau | h1. From source |
|---|---|---|---|
| 2 | |||
| 3 | 7 | Patrice Nadeau | L'installation à partir des sources permet |
| 4 | 6 | Patrice Nadeau | * d'avoir la version la plus récente |
| 5 | * n'est pas relier à une plate-forme spécifique (i686 vs x86_64 vs ARM) |
||
| 6 | |||
| 7 | 10 | Patrice Nadeau | Les test ont été fait à partir d'un BeagleBone Black sous openSUSE 13.2. |
| 8 | 8 | Patrice Nadeau | |
| 9 | 4 | Patrice Nadeau | h2. Prérequis |
| 10 | 1 | Patrice Nadeau | |
| 11 | 6 | Patrice Nadeau | Installer les utilitaires pour la compilation : |
| 12 | 5 | Patrice Nadeau | <pre><code class="bash"> |
| 13 | zypper install make gcc |
||
| 14 | </code></pre> |
||
| 15 | 4 | Patrice Nadeau | |
| 16 | 9 | Patrice Nadeau | h2. Fichiers |
| 17 | |||
| 18 | 2 | Patrice Nadeau | Télécharger |
| 19 | 1 | Patrice Nadeau | <pre><code class="bash"> |
| 20 | mkdir tmp |
||
| 21 | wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz |
||
| 22 | wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz |
||
| 23 | 3 | Patrice Nadeau | </code></pre> |
| 24 | 1 | Patrice Nadeau | |
| 25 | 9 | Patrice Nadeau | h2. Création de l'usager et groupe |
| 26 | |||
| 27 | 3 | Patrice Nadeau | <pre><code class="bash"> |
| 28 | useradd nagios |
||
| 29 | groupadd nagcmd |
||
| 30 | 1 | Patrice Nadeau | usermod -a -G nagcmd nagios |
| 31 | 9 | Patrice Nadeau | </code></pre> |
| 32 | |||
| 33 | h2. Compilation |
||
| 34 | |||
| 35 | <pre><code class="bash"> |
||
| 36 | cd nagios-4.0.8 |
||
| 37 | ./configure --with-command-group=nagcmd |
||
| 38 | make all |
||
| 39 | 3 | Patrice Nadeau | </code></pre> |