It’s quite easy to get your server added as a Nagios client for monitoring on your centralized Nagios server.
You need few nagios packages listed below to be installed on your server first
# aptitude install nagios-plugins nagios-nrpe-plugin nagios-nrpe-server
Aptitude will take care of the dependencies required.
Once this installation is done, Edit the nrpe configuration file which can be found at /etc/nagios/nrpe.cfg
. Add the required checks and then restart nrpe server.
/etc/init.d/nagios-nrpe-server restart
You’re now ready to get the remote checks done for the server on your Nagios server.