Preflight before restart

twebster at daksoft.com twebster at daksoft.com
Thu Nov 4 21:15:18 CET 2004


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



nagios-devel-admin at lists.sourceforge.net 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 <mkent at magoazul.com>
> 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
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



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




More information about the Developers mailing list