Stop the "notification interval"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Nosairis
Posts: 7
Joined: Tue Jul 05, 2016 9:38 am

Stop the "notification interval"

Post by Nosairis »

Hi all,

I have modified the config file and deleted the notification interval line, but however I found that Nagios still send notification email hourly if the host still down. Is there any way I can disable the it and just enable for the first time notification? Thanks in advance.

[root@Nagios hosts]# grep "notification_interval " /usr/local/nagios/etc/hosts/*.cfg
[root@Nagios hosts]#
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Stop the "notification interval"

Post by eloyd »

Try the same command one level up:

Code: Select all

grep -r notification_interval /usr/local/nagios/etc/*
I'm guessing it's being inherited by a host template.

Edit: It appears for some reason that the "_" is not showing up between "notification" and "interval" in my code, above. Trust me that it really is there, it's just not showing up on the screen.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Stop the "notification interval"

Post by rkennedy »

@eloyd is correct, most likely a template. Another option is to look at your /usr/local/nagios/var/objects.cache file, and see how all of your configurations are compiled together. If you can't track down the template, then please post this file for us to look at. Along with it, let us know the host / service you're referring to as well.
Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Stop the "notification interval"

Post by ssax »

Edit the host (or the template if using a template) and set notification_interval to 0, this will only send the first one.

Let us know the results.

Thank you
Nosairis
Posts: 7
Joined: Tue Jul 05, 2016 9:38 am

Re: Stop the "notification interval"

Post by Nosairis »

Hi all,

Thanks for those guidance, I solved it dy. Thanks.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Stop the "notification interval"

Post by bwallace »

Thanks for the update and glad to hear this is resolved, I'll go ahead and lock this thread now.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked