If you have not setup the Nagios Server have a look at that link to setup the Nagios server.
Nagios NRPE
Nagios Remote Plugin Executor (NRPE) allows you to remotely execute Nagios plugins on other linux systems. This allows you to monitor remote machine metrics (disk usage, CPU, local listening services, etc.).
NRPE has 2 sections:
- The nagios server side.
- The client side.
For nagios to execute remote plugins, the client configuration needs to allow the nrpe server which will be nagios.
Download, extract, configure and install NRPE server:
1 2 3 4 5 6 7 8 9 |
|
Installing NRPE on the client side:
1 2 3 |
|
Allow your nagios server ip in /etc/nagios/nrpe.cfg
:
1
|
|
Restart NRPE on the client:
1
|
|
Ensure that the check_nrpe
plugin is configured and available in the commands.cfg configuration for the nagios server:
1 2 3 4 5 6 |
|
Check this out how to create a python nrpe nagios plugin to check disk space on the client host