4

I installed nagios nrpe on a remote machine from Ubuntu repository

sudo apt-get install nagios-nrpe-server , and plugins with:

 sudo apt-get install nagios-plugins-basic nagios-plugins nagios-plugins-extra

After the installation, check_nrpe is missing in /usr/lib/nagios/plugins.

How could I resolve this problem ? I'm really new to this nagios.

2 Answers2

7

You have installed the nagios-nrpe-server package on the server you want to monitor from Nagios. This is indeed the package providing the NRPE daemon you need on any server to be monitored this way.

On your Nagios server, you need to install the nagios-nrpe-plugin package. This package will install the check_nrpe plugin on your Nagios server :

> sudo apt-get install nagios-nrpe-plugin
> cd /usr/lib/nagios/plugins/
> ls check_nr*
check_nrpe
Benoit
  • 7,637
1

Siva, after installation without any errors then you can goahead for configure your nrpe.cfg file with the following values that is required in your environment.

  1. allowed_hosts
  2. dont_blame_nrpe
  3. un comment the commands at the bottom which you wish to monitor.

Example of nrpe.cfg file changes here alllowed_hosts it can have remote server and Nagios server ip with comma separated.

allowed_hosts=198.211.117.129

dont_blame_nrpe=1

Now at bottom of the file

command[check_ram]=/usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20 -c 10
command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10%

After every nrpe.cfg file changes you need to restart the nrpe service. If you wish to write customized SHELL script that could start/stop the nrpe you can place it in the /etc/init.d/nrpe.

other option is using iptable enabled and using service at operating system level.

service nagios-nrpe-server restart

Detailed steps here