Book Image

Learning Nagios 3.0

Book Image

Learning Nagios 3.0

Overview of this book

Table of Contents (16 chapters)
Learning Nagios 3.0
Credits
About the Author
About the Reviewer
Preface

Configuring Nagios for NRPE


The next step is to set up Nagios to use NRPE for performing checks via a remote machine. Using NRPE for performing checks requires creating one or more commands that will use the check_nrpe plugin to send actual check requests to a remote machine.

The syntax of the plugin is as follows:

check_nrpe -H <host> [-n] [-u] [-p <port>] [-t <timeout>]
[-c <command>] [-a <arglist...>]

The following table describes all of the options accepted by the plugin. The items required are marked in bold:

Option

Description

-H, --host

The host name or IP address of the machine to connect to; this option must be specified

-c, --command

The name of the command that should be executed; the command needs to be defined in the nrpe.cfg file on the remote machine

-n, --no-ssl

Disables SSL for communication

-p, --port

Connects to the specified port; defaults to 5666

-t, --timeout

The number of seconds after which a connection will be terminated...