Page 1 of 1
Stop the "notification interval"
Posted: Thu Jul 14, 2016 11:22 am
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]#
Re: Stop the "notification interval"
Posted: Thu Jul 14, 2016 11:28 am
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.
Re: Stop the "notification interval"
Posted: Thu Jul 14, 2016 11:58 am
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.
Re: Stop the "notification interval"
Posted: Thu Jul 14, 2016 11:59 am
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
Re: Stop the "notification interval"
Posted: Mon Jul 18, 2016 5:24 am
by Nosairis
Hi all,
Thanks for those guidance, I solved it dy. Thanks.
Re: Stop the "notification interval"
Posted: Mon Jul 18, 2016 11:06 am
by bwallace
Thanks for the update and glad to hear this is resolved, I'll go ahead and lock this thread now.