<div> </div>
<div>Thank you for you patience. As you can see I'm not at all very experienced with Nagios (just recently set it up). :)<br> </div>
<div>I've reset the notification_interval to 0. Got confused for a moment as most of the other services are set to high numbers such as 1440. But you're right - 0 is what I need. </div>
<div> </div>
<div>I've extracted the information you asked for from objects.cache, but before take up space with that info let me show you what I found...</div>
<div> </div>
<div>I examined the log file, and found that this:</div>
<div> </div>
<ul>
<li dir="ltr"><font face="Arial" size="2">[root@server2 archives]# grep -i server1 nagios-11-12-2008-00.log |grep -i ntp|grep -i notification</font> </li>
<li dir="ltr"><font size="2"><font face="">[1226375094] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;CRITICAL;notify-service-by-email;NTP CRITICAL: Offset -419.5424475 secs</font></font></li>

<li><font size="2"><font face="">[1226379294] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;OK;notify-service-by-email;NTP OK: Offset 0.1932080023 secs</font></font></li>

<li><font size="2"><font face="">[1226381814] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;WARNING;notify-service-by-email;NTP WARNING: Offset 0.5295080024 secs<span></span> </font></font></li>

<li><font size="2"><font face="">[1226382714] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;OK;notify-service-by-email;NTP OK: Offset 0.06872100243 secs</font></font></li>

<li><font size="2"><font face="">[1226387933] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;WARNING;notify-service-by-email;NTP WARNING: Offset -0.8496964976 secs</font></font></li>

<li><font size="2"><font face="">[1226391833] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;CRITICAL;notify-service-by-email;NTP CRITICAL: Offset -6.277684498 secs</font></font></li>

<li><font size="2"><font face="">[1226394233] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;WARNING;notify-service-by-email;NTP WARNING: Offset -2.576738498 secs</font></font></li>

<li><font size="2"><font face="">[1226394533] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;CRITICAL;notify-service-by-email;NTP CRITICAL: Offset -7.470661498 secs</font></font></li>

<li><font size="2"><font face="">[1226397533] SERVICE NOTIFICATION: nagios;server1;NTP </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.3.4/" target="_blank"><font face="">1.2.3.4</font></a><font face="">;WARNING;notify-service-by-email;NTP WARNING: Offset -</font></font></li>
</ul>
<div>I does indeed seem like the notifications are sent out just like I was aiming at. But because there was so many notifications and my mailbox is a mess I didn't notice this then. </div>
<div> </div>
<div>So to me it seems like there is a lot of flapping going on, and I'll read up on the subject and see what I come up with.</div>
<div> </div>
<div>Thanks for the help. I've learned a lot more about Nagios. </div>
<div><br> </div>
<div><span class="gmail_quote">On 11/12/08, <b class="gmail_sendername">Marc Powell</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:marc@ena.com" target="_blank">marc@ena.com</a>> wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>On Nov 12, 2008, at 9:03 AM, Kenneth Holter wrote:<br><br>> I think I found one of the causes for the excessive notifacations -<br>
> the notification_interval was set to 0. For almost all our services<br>> we have a high number (such as 1440), but this current value of zero<br>> must have made it's way into the code somehow.<br><br>It should be left at 0 to get the behavior you're expecting. With<br>
notification_interval 0, a notification for a {WARNING | CRITICAL | OK/<br>RECOVERY} state will only be sent once per problem. That's what you<br>want. When set at 1440, you'll receive repeat notifications every 24<br>
hours until recovery.<br><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service</a><br>
<br>"notification_interval:         This directive is used to define the number<br>of "time units" to wait before re-notifying a contact that this<br>service is still in a non-OK state. Unless you've changed the<br>
interval_length directive from the default value of 60, this number<br>will mean minutes. If you set this value to 0, Nagios will not re-<br>notify contacts about problems for this service - only one problem<br>notification will be sent out."<br>
<br>> This is my current definition:<br>>  define service {<br>>         use                             generic-service<br>>         service_description             Current load for virtual<br>> servers<br>
>         servicegroups                   performance<br>>         hostgroups                      virtual-servers<br>>         is_volatile                     0<br>>         check_period                    24x7<br>
>         max_check_attempts              3<br>>         normal_check_interval           5<br>>         retry_check_interval            1<br>>         notification_interval           0<br>>         notification_period             24x7<br>
>         check_command                   check_remote_load!/home/<br>> nagios/.ssh/id_rsa!nagios!13.0,8.0,3.0!15.0,10.0,5.0<br>> }<br><br>This isn't the entire service definition (no contacts specified, no<br>
notification_options, what's in the template?, etc). That's why I<br>suggested getting that (and more) from objects.cache. You might also<br>want to include the log entries for the service and notifications to<br>
exemplify the problem.<br><br>> Setting this attribute to a higher value should make me get a lot<br>> less notifications, but I will still get more or less duplicate<br>> notifications. Help on avoiding this will be appreciated.<br>
<br>You just made it worse by saying you _should_ get repeat notifications<br>once a day at least. ;)<br><br>><br>> Regarding your specific questions: I think the service definition<br>> above answers most of them.<br>
<br>Not really, it's missing the key bits of information about who gets<br>notified for what, when and how.<br><br>> We don't run multiple Nagios daemons on the same machine.<br><br>I'm sure you don't intentionally but it can happen accidentally and<br>
cause strange issues. Actively make sure that you don't have multiple<br>nagios daemons running right now.<br><br>> I didn't find anything unusual in objects.cache.<br><br>This was a request so that we could see what was there and help you<br>
with your problem. What may not be unusual to you may be plainly<br>unusual to us, otherwise you wouldn't be asking for help. To make any<br>progress on this issue, you should --<br><br>- Verify you do not have multiple nagios daemons running right now.<br>
Stop nagios, use ps to see if any remain, kill them and restart<br>nagios. Let us know if you had anything you needed to kill.<br><br>If you didn't have multiple instances or you did and the problem<br>continues after doing the above,<br>
<br>- Gather the following information from objects.cache<br>       - The definition for the service experiencing this problem<br>       - The definition for the host running the service experiencing this<br>problem<br>       - The definition for the contact experiencing this problem<br>
       - The definition for that contact's notification command<br>- Gather the following information from nagios.log<br>       - entries related to the service experiencing the problem when it<br>initially goes down and subsequent checks during that outage<br>
       - entries related to notifications for the service during this time.<br><br>--<br>Marc<br><br><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>