nagios startup script patch
SCHAER Frederic
frederic.schaer at cea.fr
Tue Mar 8 11:21:06 CET 2011
Hi,
Yes, I'm aware of that, thanks.
As I said, patch is minimalistic, it does not implement anything, it just
intends to optimize the startup script...
Actually, the reason I looked at the startup script was to see how this
faststartup was handled at the init level... and it is not.
Also, I'm not interested in objects cache : when I usually reload config (I
am/was avoiding restarts), it's because the config changed...
So, what this patch does is actually take advantage of the building
optimizations, and avoid the useless duplication of checks.
If you look at the current init script, a restart *really* checks twice the
configuration using "nagios -v", and it furthermore doesn't de-activate
circular path checks when starting nagios. This is 3 tests for circular
dependencies. And 2 for a simple server start using the init script.
Since circular path checks are what seem to take most of the startup time, I
thought it might be good to take advantage of this built-in optimizations at
startup... ?
Regards
> -----Message d'origine-----
> De : Jochen Bern [mailto:Jochen.Bern at LINworks.de]
> Envoyé : lundi 7 mars 2011 17:54
> À : Nagios Developers List
> Cc : SCHAER Frederic
> Objet : Re: [Nagios-devel] nagios startup script patch
>
> On 03/07/2011 05:29 PM, SCHAER Frederic wrote:
> > 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
>
> Are you aware that there *already is* a mechanism to restrict config
> checking to a single "noninterrupting" check run?
>
> http://nagios.sourceforge.net/docs/3_0/faststartup.html
>
> Kind regards,
> J. Bern
> --
> Jochen Bern, Systemingenieur --- LINworks GmbH
> <http://www.LINworks.de/>
> Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
> PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E
> 1C27
> Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
> Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4832 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110308/3edf4fb1/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list