10.3.6 Configure the upstream Nagios monitoring host

Refer to the Nagios documentation (http://www.nagios.org/docs/) for configuring the upstream server:

The section entitled Distributed Monitoring steps through what you need to do to configure NSCA on the upstream server (under Central Server Configuration).

NRPE Documentation was recently added that steps through configuring NRPE on the upstream server http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf.

At this stage, Nagios at the upstream monitoring server is configured, and individual serial port and network host connections on the console server are configured for Nagios monitoring. If NSCA is enabled, each selected check will be executed once over the period of the check interval. If NRPE is enabled, then the upstream server will be able to request status updates under its own scheduling.

10.4 Advanced Distributed Monitoring Configuration

10.4.1 Sample Nagios configuration

An example configuration for Nagios is listed below. It shows how to set up a remote Console server to monitor a single host, with both network and serial connections. For each check it has two configurations, one each for NRPE and NSCA. In practice, these would be combined into a single check which used NSCA as a primary method, falling back to NRPE if a check was late— for details see the Nagios documentation (http://www.nagios.org/docs/) on Service and Host Freshness Checks.

;Host definitions

;Black Box console server define host{

use

generic-host

host_name

Black Box

alias

Console server

address

192.168.254.147

}

 

;Managed Host define host{

use

generic-host

host_name

server

alias

server

address

192.168.254.227

}

 

;NRPE daemon on gateway define command {

command_name check_nrpe_daemon

command_line $USER1$/check_nrpe -H 192.168.254.147 -p 5666

}

define service {

_____________________________________________________________________

724-746-5500 blackbox.com

Page 188

Page 188
Image 188
Black Box LES1408A, LES1332A Advanced Distributed Monitoring Configuration, Configure the upstream Nagios monitoring host