NRPE » Historique » Version 8
Patrice Nadeau, 2017-05-19 11:13
1 | 2 | Patrice Nadeau | h1. Nagios Remote Plugin Executor |
---|---|---|---|
2 | 1 | Patrice Nadeau | |
3 | > https://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-Nagios-Remote-Plugin-Executor/details |
||
4 | |||
5 | Ce « add-on » se divise en deux parties |
||
6 | * Le « plugin » _check_nrpe_ qui roule sur le serveur Nagios pour exécuter les vérifications sur des machines distantes. |
||
7 | * Le deamon _nrpe_ qui roule comme agent sur la machine sous surveillance |
||
8 | |||
9 | 4 | Patrice Nadeau | {{TOC}} |
10 | 3 | Patrice Nadeau | |
11 | 8 | Patrice Nadeau | h2. Prérequis |
12 | |||
13 | <pre><code class="bash"> |
||
14 | zypper install libopenssl-devel |
||
15 | </code></pre> |
||
16 | |||
17 | 2 | Patrice Nadeau | h2. Téléchargement |
18 | 1 | Patrice Nadeau | |
19 | <pre><code class="bash"> |
||
20 | mkdir ~/tmp |
||
21 | cd ~/tmp |
||
22 | wget https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.1.0.tar.gz |
||
23 | # Décompresse le fichier |
||
24 | tar xvf nrpe-3.1.0.tar.gz |
||
25 | cd nrpe-nrpe-3.1.0 |
||
26 | </code></pre> |
||
27 | |||
28 | 2 | Patrice Nadeau | h2. check_nrpe |
29 | 1 | Patrice Nadeau | |
30 | <pre><code class="bash"> |
||
31 | # openSUSE |
||
32 | ./configure |
||
33 | 7 | Patrice Nadeau | # Debian/Ubuntu |
34 | 1 | Patrice Nadeau | ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/arm-linux-gnueabihf |
35 | # All Linux |
||
36 | make clean |
||
37 | make check_nrpe |
||
38 | make install-plugin |
||
39 | </code></pre> |
||
40 | |||
41 | Un fois compilés, les exécutables ne sont pas copiés au bons endroits. On doit donc le faire manuellement. |
||
42 | |||
43 | <pre><code class="bash"> |
||
44 | 5 | Patrice Nadeau | # openSUSE |
45 | 1 | Patrice Nadeau | mkdir -p /usr/local/nagios/libexec |
46 | cp src/check_nrpe /usr/local/nagios/libexec |
||
47 | cp sample-config/nrpe.cfg /etc |
||
48 | 5 | Patrice Nadeau | # Debian/Ubuntu |
49 | 1 | Patrice Nadeau | sudo cp src/check_nrpe /usr/local/nagios/libexec |
50 | cp sample-config/nrpe.cfg /etc |
||
51 | </code></pre> |
||
52 | |||
53 | 2 | Patrice Nadeau | h2. nrpe |
54 | 1 | Patrice Nadeau | |
55 | <pre><code class="bash"> |
||
56 | # openSUSE |
||
57 | ./configure |
||
58 | # All Linux |
||
59 | make clean |
||
60 | make nrpe |
||
61 | make install-daemon |
||
62 | make install-config |
||
63 | make install-init |
||
64 | systemctl enable nrpe.service |
||
65 | systemctl start nrpe.service |
||
66 | </code></pre> |