H.8 Restart

When you start Nagios, it rechecks the configuration each time for errors and dependencies. Depending on the specific environment, this can be very quick, or it may last a long time, during which Nagios will not operate. In Nagios 3.0 there is an option to disconnect this test from the restart and instead save the result in a separate temporary file. When Nagios starts, it will read this file, and the otherwise usual processing of objects is left out at this point. Whether this is worthwhile or not is revealed by nagios -s:

nagios@linux:~$ /usr/local/nagios/bin/nagios -s /etc/nagios/nagios.cfg OBJECT CONFIG PROCESSING TIMES (* = Potential for precache savings with -u option) ---------------------------------- Read: 0.019277 sec Resolve: ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.