nagios startup script patch

Daniel Wittenberg daniel.wittenberg.r0ko at statefarm.com
Mon Mar 7 17:37:43 CET 2011


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 ?

 

Dan

 

From: SCHAER Frederic [mailto:frederic.schaer at cea.fr] 
Sent: Monday, March 07, 2011 10:30 AM
To: nagios-devel at lists.sourceforge.net
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110307/4ab002cc/attachment.html>
-------------- 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