Exclude notifications

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
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Exclude notifications

Post by whitest »

I send results of checks from remote Nagios to local Nagios via send_gearman plugin. Remote Nagios performs active checks and notifications in own network. Local Nagios performs active checks, notifications in own network and displays services from remote nwtwork.
I need to exclude notification for remote services in local Nagios, because now I receive 2 messages (one from local nagios and one from remote).
Can samebody help me?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Exclude notifications

Post by Box293 »

Could you disable notifications on your local nagios server for the remote services?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Exclude notifications

Post by whitest »

Box293 wrote:Could you disable notifications on your local nagios server for the remote services?
How I can do it?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Exclude notifications

Post by jdalrymple »

You can just do it on a per service basis or setup a template to handle it:

http://nagios.sourceforge.net/docs/nagi ... ml#service

Code: Select all

notifications_enabled        0
It may be simpler (if it works) to just disable notifications globally on the remote server within nagios.cfg?
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Exclude notifications

Post by whitest »

jdalrymple wrote:You can just do it on a per service basis or setup a template to handle it:

http://nagios.sourceforge.net/docs/nagi ... ml#service

Code: Select all

notifications_enabled        0
It may be simpler (if it works) to just disable notifications globally on the remote server within nagios.cfg?
=|

Remote Nagios must notify own services only.
Local (central) Nagios must notify own services only.
Local (central) Nagios must display own and remote services on dashboard.
Therefore, I cannot disable notifications on remote Nagios =(
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Exclude notifications

Post by jdalrymple »

So then the appropriate solution is to create a template disabling notifications and apply it to all of your remote services - you likely already have the template, just need to adjust the setting.
Locked