Tutorial on installing the nrpe client in ubuntu
1. Add users
Useradd-s/sbin/nologin Nagios
2. Copy and install the tar package to the server and decompress it.
Tar-zxvf nrpe-2.15.tar.gz
Tar-zxvf nagios-plugins-2.1.1.tar.gz
3. Compile
Cd nagios-plugins-2.1.1
./Configure -- with-nagios-user = nagios -- with-nagios-group = nagios
Make
Make install
Cd nrpe-2.15
. /Configure -- with-nrpe-user = nagios -- with-nrpe-group = nagios -- with-nagios-user = nagios -- with-nagios-group = nagios -- enable-command-args -- enable-ssl
. /Configure -- enable-command-args -- with-nagios-user = nagios -- with-nagios-group = nagios -- with-ssl =/usr/bin/openssl -- with-ssl- lib =/usr/lib/x86_64-linux-gnu
Make all
Sudo make install
Sudo make install-xinetd
Sudo make install-daemon-config
4. Open the xinetd Startup Script
Vi/etc/xinetd. d/nrpe
Modify the content of only_from and add the IP address of your Nagios server (the address used in this article is 10.100.2.180 ):
Only_from = 127.0.0.1 10.100.2.180
5. Start the nrpe Client
Service xinetd restart