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.
Is It Possible to Setup Multiple Nagios Servers This Way?
-
- Posts: 3
- Joined: Mon Mar 17, 2014 12:50 pm
-
- 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
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
}
-
- Posts: 3
- Joined: Mon Mar 17, 2014 12:50 pm
Re: Is It Possible to Setup Multiple Nagios Servers This Way
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!
Thank you!
Re: Is It Possible to Setup Multiple Nagios Servers This Way
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.
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
-
- Posts: 3
- Joined: Mon Mar 17, 2014 12:50 pm
Re: Is It Possible to Setup Multiple Nagios Servers This Way
Wouldn't it be possible to achieve this using NSCA?
-
- 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
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
http://assets.nagios.com/downloads/nagi ... _Addon.pdf