226
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
CHAPTER 11: NAGIOS INTEGRATION
11.2.6 CONFIGURE THE UPSTREAM NAGIOS MONITORING HOST
For configuring the upstream server refer to the Nagios documentation, at https://nagios.org/documentation/.
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 has recently been added which 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 has been configured, and individual serial port and network host
connections on the console server 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.
11.3 ADVANCED DISTRIBUTED MONITORING CONFIGURATION
11.3.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 for NRPE and one for 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 —at https://nagios.org/documentation/—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