<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Daniel Wittenberg wrote:</tt>
<blockquote
cite="mid:31B0FE0A1A8166409E9DF35C6DEECB2405CB54F1@WPSCV6MM.OPR.STATEFARM.ORG"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Mangal;
panose-1:0 0 4 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><tt><span style="color: rgb(31, 73, 125);">Doesn’t
this create potential problem if you just do a normal
start with errors and not a restart? i.e. verify ->
stop -> update configs -> start -> die ?</span></tt></p>
</div>
</blockquote>
<tt><br>
the start case already includes a config verification and decides
upon return value either to start the daemon or to throw an error.
the patch considers to remove the doubled verification, so i think
it's fine.<br>
<br>
Kind regards,<br>
Michael<br>
<br>
<br>
</tt>
<blockquote
cite="mid:31B0FE0A1A8166409E9DF35C6DEECB2405CB54F1@WPSCV6MM.OPR.STATEFARM.ORG"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><tt><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="color: rgb(31, 73, 125);">Dan<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></tt></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0in 0in;">
<p class="MsoNormal"><tt><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif";">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";"> SCHAER
Frederic [<a class="moz-txt-link-freetext" href="mailto:frederic.schaer@cea.fr">mailto:frederic.schaer@cea.fr</a>] <br>
<b>Sent:</b> Monday, March 07, 2011 10:30 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:nagios-devel@lists.sourceforge.net">nagios-devel@lists.sourceforge.net</a><br>
<b>Subject:</b> [Nagios-devel] nagios startup script
patch<o:p></o:p></span></tt></p>
</div>
</div>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>Hi,<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>Attached is a patch that intends to
remove duplicate configuration checks when (re)starting
nagios.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Especially, this divides by three
nagios restart time for large configurations since the
restart sequence is no more “verify - stop - verify - start
+ nagios paths check”, but only “verify - stop - start
without checking paths” .<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>Without patch, and because of circular
dependencies checks, my nagios is taking 15 minutes to
restart:<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt># time service nagios restart<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Running configuration check...done.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Stopping nagios: ...done.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Starting nagios: done.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>real 15m40.751s<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>user 15m24.449s<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>sys 0m1.388s<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>With this simple patch : <o:p></o:p></tt></p>
<p class="MsoNormal"><tt># time service nagios restart<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Running configuration check...done.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Stopping nagios: ..done.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Starting nagios: done.<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>real 5m2.680s<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>user 4m52.048s<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>sys 0m0.820s<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>I hope this gets included in the code…<o:p></o:p></tt></p>
<p class="MsoNormal"><tt>Cheers,<o:p></o:p></tt></p>
<p class="MsoNormal"><tt><o:p> </o:p></tt></p>
<p class="MsoNormal"><tt>Frederic Schaer<o:p></o:p></tt></p>
</div>
<pre wrap=""><tt>
</tt><fieldset class="mimeAttachmentHeader"></fieldset><tt>
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/progress-d2d">http://p.sf.net/sfu/progress-d2d</a></tt></pre>
<pre wrap=""><tt>
</tt><fieldset class="mimeAttachmentHeader"></fieldset><tt>
_______________________________________________
Nagios-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a>
</tt></pre>
</blockquote>
<tt><br>
<br>
</tt>
<pre class="moz-signature" cols="72"><tt>--
DI (FH) Michael Friedrich
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
email: <a class="moz-txt-link-abbreviated" href="mailto:michael.friedrich@univie.ac.at">michael.friedrich@univie.ac.at</a>
phone: +43 1 4277 14359
fax: +43 1 4277 14338
web: <a class="moz-txt-link-freetext" href="http://www.univie.ac.at/zid">http://www.univie.ac.at/zid</a>
<a class="moz-txt-link-freetext" href="http://www.aco.net">http://www.aco.net</a>
Icinga Core & IDOUtils Developer
<a class="moz-txt-link-freetext" href="http://www.icinga.org">http://www.icinga.org</a>
</tt></pre>
</body>
</html>