Re: [Nagios-devel] nagios startup script patch

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] nagios startup script patch

Post by Guest »

This is a multi-part message in MIME format.
--------------020908050709080804010808
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Daniel Wittenberg wrote:
>
> 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 ?
>

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.

Kind regards,
Michael


> Dan
>
> *From:*SCHAER Frederic [mailto:[email protected]]
> *Sent:* Monday, March 07, 2011 10:30 AM
> *To:* [email protected]
> *Subject:* [Nagios-devel] nagios startup script patch
>
> Hi,
>
> Attached is a patch that intends to remove duplicate configuration
> checks when (re)starting nagios.
>
> 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? .
>
> Without patch, and because of circular dependencies checks, my nagios
> is taking 15 minutes to restart:
>
> # time service nagios restart
>
> Running configuration check...done.
>
> Stopping nagios: ...done.
>
> Starting nagios: done.
>
> real 15m40.751s
>
> user 15m24.449s
>
> sys 0m1.388s
>
> With this simple patch :
>
> # time service nagios restart
>
> Running configuration check...done.
>
> Stopping nagios: ..done.
>
> Starting nagios: done.
>
> real 5m2.680s
>
> user 4m52.048s
>
> sys 0m0.820s
>
> I hope this gets included in the code?
>
> Cheers,
>
> Frederic Schaer
>
>
>
> ------------------------------------------------------------------------------
> 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. http://p.sf.net/sfu/progress-d2d
>
>
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel


--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: [email protected]
phone: +43 1 4277 14359
fax: +43 1 4277 14338
web: http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core& IDOUtils Developer
http://www.icinga.org


--------------020908050709080804010808
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit







Daniel Wittenberg wrote:



<!--
/* 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:pers

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked