Projet

Général

Profil

Actions

NRPE » Historique » Révision 1

Révision 1/39 | Suivant »
Patrice Nadeau, 2017-04-29 11:18


h1. NRPE

h2. Nagios Remote Plugin Executor

https://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-Nagios-Remote-Plugin-Executor/details

Ce « add-on » se divise en deux parties

  • Le « plugin » check_nrpe qui roule sur le serveur Nagios pour exécuter les vérifications sur des machines distantes.
  • Le deamon nrpe qui roule comme agent sur la machine sous surveillance

h3. Téléchargement


mkdir ~/tmp
cd ~/tmp
wget https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.1.0.tar.gz
# Décompresse le fichier
tar xvf nrpe-3.1.0.tar.gz
cd nrpe-nrpe-3.1.0

h3. check_nrpe


# openSUSE
./configure
# Debian
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/arm-linux-gnueabihf
# All Linux
make clean
make check_nrpe
make install-plugin

Un fois compilés, les exécutables ne sont pas copiés au bons endroits. On doit donc le faire manuellement.

openSUSE:


mkdir -p /usr/local/nagios/libexec
cp src/check_nrpe /usr/local/nagios/libexec
cp sample-config/nrpe.cfg /etc

Debian/Ubuntu :


sudo cp src/check_nrpe /usr/local/nagios/libexec
cp sample-config/nrpe.cfg /etc

h5. nrpe


# openSUSE
./configure
# All Linux
make clean
make nrpe
make install-daemon
make install-config
make install-init
systemctl enable nrpe.service
systemctl start nrpe.service

Mis à jour par Patrice Nadeau il y a presque 8 ans · 1 révisions