Page 1 of 1

[Nagios-devel] nagios startup script patch

Posted: Mon Mar 07, 2011 4:30 pm
by Guest
This is a multipart message in MIME format.

------=_NextPart_000_0028_01CBDCED.437BFC70
Content-Type: multipart/mixed;
boundary="----=_NextPart_001_0029_01CBDCED.437BFC70"


------=_NextPart_001_0029_01CBDCED.437BFC70
Content-Type: multipart/alternative;
boundary="----=_NextPart_002_002A_01CBDCED.437BFC70"


------=_NextPart_002_002A_01CBDCED.437BFC70
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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


------=_NextPart_002_002A_01CBDCED.437BFC70
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable






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 =
restartRunning co

...[email truncated]...


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