NRPE » Historique » Version 10
Patrice Nadeau, 2017-05-19 16:25
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 | 10 | Patrice Nadeau | # Remove if already installed with the OS |
16 | zypper remove nrpe |
||
17 | 8 | Patrice Nadeau | </code></pre> |
18 | |||
19 | 2 | Patrice Nadeau | h2. Téléchargement |
20 | 1 | Patrice Nadeau | |
21 | <pre><code class="bash"> |
||
22 | mkdir ~/tmp |
||
23 | cd ~/tmp |
||
24 | wget https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.1.0.tar.gz |
||
25 | # Décompresse le fichier |
||
26 | tar xvf nrpe-3.1.0.tar.gz |
||
27 | cd nrpe-nrpe-3.1.0 |
||
28 | </code></pre> |
||
29 | |||
30 | 2 | Patrice Nadeau | h2. check_nrpe |
31 | 1 | Patrice Nadeau | |
32 | <pre><code class="bash"> |
||
33 | # openSUSE |
||
34 | ./configure |
||
35 | 7 | Patrice Nadeau | # Debian/Ubuntu |
36 | 1 | Patrice Nadeau | ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/arm-linux-gnueabihf |
37 | # All Linux |
||
38 | make clean |
||
39 | make check_nrpe |
||
40 | make install-plugin |
||
41 | </code></pre> |
||
42 | |||
43 | Un fois compilés, les exécutables ne sont pas copiés au bons endroits. On doit donc le faire manuellement. |
||
44 | |||
45 | <pre><code class="bash"> |
||
46 | 5 | Patrice Nadeau | # openSUSE |
47 | 1 | Patrice Nadeau | mkdir -p /usr/local/nagios/libexec |
48 | cp src/check_nrpe /usr/local/nagios/libexec |
||
49 | cp sample-config/nrpe.cfg /etc |
||
50 | 5 | Patrice Nadeau | # Debian/Ubuntu |
51 | 1 | Patrice Nadeau | sudo cp src/check_nrpe /usr/local/nagios/libexec |
52 | cp sample-config/nrpe.cfg /etc |
||
53 | </code></pre> |
||
54 | |||
55 | 2 | Patrice Nadeau | h2. nrpe |
56 | 1 | Patrice Nadeau | |
57 | <pre><code class="bash"> |
||
58 | # openSUSE |
||
59 | 9 | Patrice Nadeau | ./configure --enable-command-args |
60 | 1 | Patrice Nadeau | # All Linux |
61 | make clean |
||
62 | make nrpe |
||
63 | make install-daemon |
||
64 | make install-config |
||
65 | make install-init |
||
66 | systemctl enable nrpe.service |
||
67 | systemctl start nrpe.service |
||
68 | </code></pre> |