10.5 Nagios Configuration

Commands that "trigger" local plugins on remote computers via check_nrpe are defined as before in the file checkcommands.cfg on the Nagios server.

10.5.1 NRPE without passing parameters on

If no parameters are passed on to the target plugin, things will look like this:

define command{
    command_name check_nrpe
    command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

As the only argument, Nagios passes the command here that NRPE is to execute. If the check_nrpe plugin on the Nagios server is located in a different directory to the other plugins, you must enter the correct path instead of $USER1$.

A service to be tested via NRPE uses the command just defined, check_nrpe, as check_command. As an argument, the command is specified ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.