16.5 Configuration Changes through the Web Interfaces: the Restart Problem

The CGI program cmd.cgi (16.2.3 Interface for external commands: cmd.cgi, page 343) enables a series of changes to be made to the current configuration through the Web interface.[174] In this way notifications or active checks can be switched on and off, for example.

Nagios does not save such changes in the accompanying configuration file, but notes the the current status in a separately defined file, with the parameter state_retention_file in nagios.cfg (see A.1 The Main Configuration File nagios.cfg). But what happens if you restart Nagios after many changes using the Web interface?

Whether Nagios retains the interactive changes made after a restart or forgets them is dependent ...

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.