Re: [Nagios-devel] Preflight before restart

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

Re: [Nagios-devel] Preflight before restart

Post by Guest »

I simply added a new case to my init script which in addition to start,
stop restart, I have it perform a verify.

It simple calls '$NagiosBin -v $NagioCfg'

I then run '/etc/init.d/nagios verify' prior to performing a restart so I
can catch any errors before stopping nagios.

tony



[email protected] wrote on 11/04/2004 05:04:20 AM:

> On Thu, 2004-11-04 at 17:16, Jason Martin wrote:
> > One vulnerablility I've noticed in Nagios is that restarting via a
> > HUP or a external command can be dangerous; if the 'new'
> > configuration is broken in any way Nagios will die. It occurs
> > to me that it would be very handy if Nagios performed a
> > preflight on the new configuration before attempting to load it
> > as the 'live' config. That way Nagios won't go down if the new
> > config isn't valid.
> >
> > Thanks,
> > -Jason Martin
>
> The default init script that ships with nagios calls a preflight check
> when doing a reload before sending a HUP. Seems like a reasonable
> solution to me.
> --
> Matthew Kent
> http://magoazul.com
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel






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