[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

[Nagios-devel] nagios startup script patch

Post by Guest »

This is a multi-part message in MIME format.

------_=_NextPart_001_01CBDCE5.FBD540B5
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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 ?

=20

Dan

=20

From: SCHAER Frederic [mailto:[email protected]]=20
Sent: Monday, March 07, 2011 10:30 AM
To: [email protected]
Subject: [Nagios-devel] nagios startup script patch

=20

Hi,

=20

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" .

=20

Without patch, and because of circular dependencies checks, my nagios is
taking 15 minutes to restart:

=20

# time service nagios restart

Running configuration check...done.

Stopping nagios: ...done.

Starting nagios: done.

=20

real 15m40.751s

user 15m24.449s

sys 0m1.388s

=20

=20

With this simple patch :=20

# time service nagios restart

Running configuration check...done.

Stopping nagios: ..done.

Starting nagios: done.

=20

real 5m2.680s

user 4m52.048s

sys 0m0.820s

=20

I hope this gets included in the code...

Cheers,

=20

Frederic Schaer


------_=_NextPart_001_01CBDCE5.FBD540B5
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable






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 <div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in

...[email truncated]...


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