Is It Possible to Setup Multiple Nagios Servers This Way?

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
stephane74
Posts: 3
Joined: Mon Mar 17, 2014 12:50 pm

Is It Possible to Setup Multiple Nagios Servers This Way?

Post by stephane74 »

Is it possible to setup multiple Nagios Core servers so that an alert notification is sent only when a service is considered problematic (warning/critical) by every Nagios server? If it's possible, please give me a few pointers.

Thank you in advance!

P.S. Sorry for my english btw.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Is It Possible to Setup Multiple Nagios Servers This Way

Post by slansing »

Well, sure, you can do this with just one server as well, its just in how you set up your contacts and services. All you need to do is only enable notifications for warnings and criticals, in this example definition warning and critical are the only options defined:

Code: Select all

define service{

	host_name		linux-server

	service_description	check-disk-sda1

	check_command		check-disk!/dev/sda1

	max_check_attempts	5

	check_interval	5

	retry_interval	3

	check_period		24x7

	notification_interval	30

	notification_period	24x7

	notification_options	w,c

	contact_groups		linux-admins

	}
stephane74
Posts: 3
Joined: Mon Mar 17, 2014 12:50 pm

Re: Is It Possible to Setup Multiple Nagios Servers This Way

Post by stephane74 »

Ok but how do I get a Nagios Core server to push its monitoring data to a central server? I have no problem replicating the configuration files (.cfg) though. I just can't find how to have one server push its data to another one.

Thank you!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Is It Possible to Setup Multiple Nagios Servers This Way

Post by tmcdonald »

Sorry, I think slansing misunderstood the question.

I do not believe it is a built-in feature of Nagios Core to collaborate with other Core servers and only alert if they are all in agreement about a host or service. There are some options for this to a limited degree in Nagios XI using the BPI addon and check result forwarding, but Core is probably not able to achieve this without some *heavy* modification.
Former Nagios employee
stephane74
Posts: 3
Joined: Mon Mar 17, 2014 12:50 pm

Re: Is It Possible to Setup Multiple Nagios Servers This Way

Post by stephane74 »

Wouldn't it be possible to achieve this using NSCA?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Is It Possible to Setup Multiple Nagios Servers This Way

Post by slansing »

With NSCA alone? No, NSCA is only responsible for running plugins on a cron and then pushing the output up to a single, or multiple, nagios servers. You would have to set up something similar to BPI, or BPI alone may be able to handle this for you:

http://assets.nagios.com/downloads/nagi ... _Addon.pdf
Locked