From source » Historique » Version 12
  Patrice Nadeau, 2015-01-02 16:58 
  
| 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 | 11 | Patrice Nadeau | /usr/sbin/groupadd nagios  | 
| 31 | 1 | Patrice Nadeau | usermod -a -G nagcmd nagios  | 
| 32 | 11 | Patrice Nadeau | usermod -a -G nagios nagios  | 
| 33 | 9 | Patrice Nadeau | </code></pre>  | 
| 34 | |||
| 35 | h2. Compilation  | 
||
| 36 | |||
| 37 | <pre><code class="bash">  | 
||
| 38 | cd nagios-4.0.8  | 
||
| 39 | ./configure --with-command-group=nagcmd  | 
||
| 40 | make all  | 
||
| 41 | 12 | Patrice Nadeau | make install  | 
| 42 | make install-init  | 
||
| 43 | make install-commandmode  | 
||
| 44 | make install-config  | 
||
| 45 | 3 | Patrice Nadeau | </code></pre>  |