Page 1 of 1

nagios master slave configuration

Posted: Tue Sep 05, 2017 8:22 am
by pkrk
Hi,

I would like to install nagios in 1 server and have 2 other servers, as slaves from the master.

Do you know how can i do that?
is there some tutorial?

Re: nagios master slave configuration

Posted: Tue Sep 05, 2017 2:03 pm
by dwhitfield
It depends on what you mean by a slave. Can you expand on what you are trying to do?

You may find https://assets.nagios.com/downloads/gen ... r_MSPs.pdf useful.

If you are looking for HA, then please see https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: nagios master slave configuration

Posted: Wed Sep 06, 2017 3:30 am
by pkrk
I pretend to do Master server in one server,
then having two slaves server , 1 for linux hosts and 1 for windows hosts
also because of the load on the master server i want to have this two slaves

Re: nagios master slave configuration

Posted: Wed Sep 06, 2017 9:24 am
by mcapra
Most master/slave setups I've seen are using passive checks to pass [slave check results] up to the master server. The setup will require some Nagios knowledge, is non-trivial, and doesn't have nice neat HowToForge style step-by-step instructions (to my knowledge).

Refer to the "Federated Monitoring" section of this document for pretty pictures and high-level overviews:
https://assets.nagios.com/downloads/gen ... utions.pdf

Some more resources on passive checks:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... hecks.html

NRDP is a very common tool used in such setups:
https://exchange.nagios.org/directory/A ... or/details

In this setup, the "master" Nagios XI server acts as a bucket of sorts to collect all the results from the slave Nagios Core and Nagios XI machines.

Re: nagios master slave configuration

Posted: Wed Sep 06, 2017 11:04 am
by dwhitfield
Thanks @mcapra!

@pkrk, did you have any additional questions?

Re: nagios master slave configuration

Posted: Thu Sep 07, 2017 2:59 pm
by pkrk
what about Mod-Gearman ?

or other load balancer solution with 2 nodes of nagios sharing the load?

Re: nagios master slave configuration

Posted: Thu Sep 07, 2017 3:28 pm
by scottwilkerson
pkrk wrote:what about Mod-Gearman ?

or other load balancer solution with 2 nodes of nagios sharing the load?
Mod gearman is possible as well, here is a doc on utilizing that
https://support.nagios.com/kb/article/n ... rkers.html