Page 1 of 1

Federated monitorig

Posted: Fri Mar 26, 2021 10:23 am
by Support_Talea
Hi,

I would like to ask for the possibility of a configuration to the various documentation about it.

I would like to distribute Nagioscore in foreign offices where they will have to report the checks and alarms to the NagiosXI master.

This is possible? If so, how?
I have read various ways, the topic is not very clear.
Mod-gearman or federated monitoring.

The nagios cores will have to perform various checks, snmp pings etc.
And if connectivity with federated monitoring has some problems, what happens?
Is there any documentation?

Best regards
-Fede

Re: Federated monitorig

Posted: Mon Mar 29, 2021 9:31 am
by dchurch
Sure, this is possible a few different ways:

- Set up one instance of Nagios XI running inside the target network, and having it report to Nagios Fusion. This is the more expensive route.

- Run check_ncpa NCPA thru the SSH Proxy wizard. This can be done with a single Nagios XI installation.
At a high level, you'd:
1. Upload the /usr/local/nagios/libexec/check_ncpa script to a "dumb" ssh server (that you set up and control) that sits inside the monitored network.
2. Run thru the SSH Proxy wizard, and with the host being your "dumb" server, add a command that looks something like this:

Code: Select all

/path/to/check_ncpa -H <IP ADDRESS OF NCPA HOST> -t 'password1' -P 5693 -M memory/swap -u 'Gi' -w '80' -c '90'
All this does is execute a remote command and record the output and return code. In this case the command is the exact same command that Nagios XI would run if it were monitoring the host, except instead it's asking the SSH server to perform the check for it.

Mod Gearman wouldn't be the right tool for the job unless you started running into performance problems.