<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">stucky</b> <<a href="mailto:stucky101@gmail.com">stucky101@gmail.com</a>><br>Date: Jun 15, 2007 11:17 AM<br>
Subject: Re: [Nagios-users] host-down notification can take 50 mins to be sent<br>To: Jim Avery <<a href="mailto:jim@jimavery.me.uk">jim@jimavery.me.uk</a>><br><br></span>Jim<br><br>I'm confused<br><br>1. Nagios
2.9 comes with flapping turned off globally by default :<br><br># Values: 1 = enable flap detection<br># 0 = disable flap detection (default)<br><br>enable_flap_detection=0
<br><br>2. It also comes with check_for_orphaned_services=1<br><br>3. Most importantly it comes with a localhost.cfg file that has 2 nested host templates from the start.<br><br>One called 'generic-host' and one called 'linux-server' which uses 'generic-host'
<br>Then it has a host description that uses 'linux-host' so we have 3 levels of recursion right from the start.<br>It does the same thing with service templates.<br><br>I assume you must not have looked at the defaults at all or just changed it back to just one template.
<br>I never used more than one before either but since the default configs suggest it I figured it'd be ok.<br><br>Anyone else here uses object inheritance with multi-level recursion ?<br><br><div><span class="q"><span class="gmail_quote">
On 6/15/07, <b class="gmail_sendername">Jim Avery</b> <<a href="mailto:jim@jimavery.me.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jim@jimavery.me.uk</a>> wrote:</span></span><div><span class="e" id="q_113309a546c140c6_2">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 15/06/07, stucky <<a href="mailto:stucky101@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">stucky101@gmail.com</a>> wrote:<br>> Actually, flapping is turned off globally in
nagios.cfg and although it's<br>> still turned on in the host template it shouldn't matter right ?
<br><br>No, my understanding is that the global setting overrides everything<br>else (I've never turned it off globally myself though).<br><br>> I turned it off here as well.<br><br>Might as well.<br><br>> 1. How can a host be flapping if it's down ?
<br><br>Flapping can be detected on any change of state down-up or up-down.<br>How it works is documented here:<br><a href="http://nagios.sourceforge.net/docs/2_0/toc.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://nagios.sourceforge.net/docs/2_0/toc.html</a>
(look under advanced<br>topics). Anyway, from what you're saying, it sounds like flapping<br>isn't your problem.<br><br>> 2. Are most of you guys on here using flap detection and has it been causing<br>> this kind of problem for anyone ?
<br><br>Well I do, obviously. I guess lots of others do as it is important in<br>preventing getting storms of notifications if a host or service is<br>flapping. If you don't have the f notification option, it can<br>
sometimes be confusing to see the notification that a service has gone<br>down, but not get one to show it's come up again.<br><br>One problem with having flap notifications is that Nagios might detect<br>that the host or service has stopped flapping at any odd hour - if
<br>your notifications are going to an on-call pager for example you can<br>end up waking up your on-call engineer unnecessarily. As ever it's up<br>to you to decide what your priorities are.<br><br>> 3. If it was flapping shouldn't I have seen this in the log?
<br><br>Yes. You'll see it in the alert history for that host (or service).<br><br>Another thing to try when you get this kind of behaviour is to set<br>check_for_orphaned_services to 1 in the main nagios config file.
<br><br>I've never tried having a template use another template. I'm not<br>saying it shouldn't work, it's just not something I would feel<br>comfortable doing. I'd be interested to hear a definitive answer as
<br>to whether that's a good thing to do or not myself as it would come in<br>handy sometimes.<br><br>cheers,<br><br>Jim<br><br>-------------------------------------------------------------------------<br>This SF.net
email is sponsored by DB2 Express
<br>Download DB2 Express C - the FREE version of DB2 express and take<br>control of your XML. No limits. Just data. Click to get it now.<br><a href="http://sourceforge.net/powerbar/db2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://sourceforge.net/powerbar/db2/
</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nagios-users@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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></span></div></div><br><br clear="all"><br>-- <br><span class="sg">stucky
</span><br clear="all"><br>-- <br>stucky