Page 1 of 1

Broken link (distributed monitoring)

Posted: Wed Sep 13, 2017 2:38 am
by candlerb
I'd like just to report a documentation problem.

At https://assets.nagios.com/downloads/nag ... buted.html it says:

"Different options for setting up a distributed monitoring environment, along with their strengths and weaknesses, can be found in a special Distributed Monitoring topics area of the Nagios Core Library"

The link points to https://library.nagios.com/library/spec ... 1504337972

but that link gives a 404 error.

I think it should instead link to either
https://library.nagios.com/library/specialtopics/
or
https://assets.nagios.com/downloads/gen ... 1504337972

Thanks,

Brian.

Re: Broken link (distributed monitoring)

Posted: Wed Sep 13, 2017 10:12 am
by candlerb
One other thing. Page 3 of that PDF talks about federation, which is what I'm interested in:

"Remote Nagios servers can be configured to transfer check results (status
information) back to a central Nagios XI server at the NOC. This allows NOC
staff to have a birds-eye view of the entire network, and provides them with
centralized reporting and optional notifications."

But it doesn't actually say *how* to do this, nor is it indicated on the diagram.

From further googling around, it seems that:

* the central Nagios server runs NRDP: https://assets.nagios.com/downloads/nrd ... erview.pdf
* the remote Nagios servers could be configured with ocsp_command and ohcp_command to invoke an NRDP client, e.g. send_nrdp.sh

Is this correct? I haven't actually been able to find a complete example of ocsp_command=send_nrdp.sh <arg> <arg> <arg>

I did find documentation on NRDS, but that appears to be a part of the commercial Nagios XI. I'm trying to work out how you'd do federation with nagios core.

Thanks,

Brian.

Re: Broken link (distributed monitoring)

Posted: Wed Sep 13, 2017 11:28 am
by scottwilkerson
Thanks for the doc update.

There is a doc that displays some of this for XI but is relevant for Core and it shows how to use ocsp_command and ohcp_command with the send_nrdp.php

Page 3 & 4 of
https://assets.nagios.com/downloads/nag ... h-NRDP.pdf

Commands

Code: Select all

define command{
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=https://10.25.5.17/nrdp/ --token=XXXXX --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
	command_name send_nrdp_service
	command_line $USER1$/send_nrdp.php --url=https://10.25.5.17/nrdp/ --token=XXXXX --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}

nagios.cfg

Code: Select all

obsess_over_hosts=1
obsess_over_services=1
ochp_command=send_nrdp_host
ocsp_command=send_nrdp_service