Page 1 of 1

Exclude notifications

Posted: Sun Jun 21, 2015 6:46 am
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?

Re: Exclude notifications

Posted: Sun Jun 21, 2015 6:38 pm
by Box293
Could you disable notifications on your local nagios server for the remote services?

Re: Exclude notifications

Posted: Mon Jun 22, 2015 2:22 am
by whitest
Box293 wrote:Could you disable notifications on your local nagios server for the remote services?
How I can do it?

Re: Exclude notifications

Posted: Mon Jun 22, 2015 10:22 am
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?

Re: Exclude notifications

Posted: Mon Jun 22, 2015 10:42 am
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 =(

Re: Exclude notifications

Posted: Mon Jun 22, 2015 1:13 pm
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.