O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required