nagios startup script patch

SCHAER Frederic frederic.schaer at cea.fr
Mon Mar 7 17:29:50 CET 2011


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/991215f3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quickstart.patch
Type: application/octet-stream
Size: 1788 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110307/991215f3/attachment.obj>
-------------- 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/20110307/991215f3/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