NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines. This allows you to monitor remote machine metrics (disk usage, CPU load, etc.). NRPE can also communicate with some of the Windows agent addons, so you can execute scripts and check metrics on remote Windows machines as well. Citation.
You may follow the steps to install NRPE in any of the following ways:
1) Steps (compiling from sources)
First, you should download the latest NRPE version from HERE.
Then, install some required packages:
|
1 2 |
apt-get update apt-get install build-essential libssl-dev |
Unpack the NRPE addons, configure and install:
|
1 2 3 4 5 6 |
cd /opt tar xvfz nrpe-2.12.tar.gz cd nrpe-2.12 ./configure --enable-command-args make all make install-plugin |
2) Steps (using apt binaries)
|
1 2 |
apt-get update apt-get install nagios-nrpe-plugin |
Invocation
NRPE can now be invoked using the following:
|
1 |
/usr/lib/nagios/plugins/check_nrpe |
Another option would be to create a symlink to make the invocation easier:
|
1 |
ln -s /usr/lib/nagios/plugins/check_nrpe /usr/bin/check_nrpe |
Thus:
|
1 |
check_nrpe |
Pingback: Nagios: How to check if remote process is running | Linux System Admins Blog
Pingback: Nagios nrpe configuration CentOS, Ubuntu « Kurinchi Blogger Scribbles …
Pingback: Thunderbird