Master- slave nagios?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kojraai
Posts: 1
Joined: Wed Dec 14, 2011 6:00 am

Master- slave nagios?

Post by kojraai »

Hi all !

I have 3 nagios with the same hosts and services.
Nagios1 , Nagios2 , Nagios3 .
How can i set a master server for notification?

Example:

If one host / services down on Nagios1, Nagios1-2-3 send an email.
But i want that only Nagios1 send an email, Nagios2-3 only send if Nagios1 not online or down.

I want Nagios1 as master of Nagios2-3, and Nagios2 master of Nagios3.
crfriend
Posts: 61
Joined: Thu Sep 01, 2011 7:53 am
Location: Central New England (USA)
Contact:

Re: Master- slave nagios?

Post by crfriend »

In the "classic" distributed setup for Nagios, one runs all the "subservient" servers with notifications turned off and with obsessive-compulsive scripts set to report the findings of each scheduled plugin run to the master.

To get "cascading" responsibility, one would have to leave notifications turned ON on each of the servers and have a check in the notification script to detect whether the "master" is operational; if the master is up and running, one suppresses notifications and if the master is NOT then one transmits the notification. Note that this implies that the subservient servers must be monitoring their respective masters and that the state of the master be made available to the local notification plugin.
Locked