What's New in Nagios Core 4.x

Up ToUp To: Contents
See Also See Also: Known Issues

Tip Important: Make sure you read through the documentation and the FAQs at before sending a question to the mailing lists.

Change Log

The change log for Nagios can be found online at or in the Changelog file in the root directory of the source code distribution.

Changes and New Features

  1. Performance Improvements:

    The performance improvements in Nagios Core 4 come primarily from the following areas:

  2. Object Definitions:

    The following changes have been made to object definitions:

  3. Object Behavior:
  4. Configuration:

    The following changes have been made to the main Nagios Core configuration, nagios.cfg:

  5. Macros:
  6. Query Handler:

    The query handler is a general purpose communication mechanism that allows external entities to communicate with Nagios Core in a well-defined manner. As of this writing, all communication with the query handler takes place through a Unix-domain socket whose location is defined by the query_socket configuration variable.

    There are currently 5 built-in query handlers.

    More information about the query handler interface, including an introduction to creating a custom query handler, can be found in the source-supplied documentation.

  7. Core Workers:

    Previously, all host and service checks were performed by the full Nagios Core process. This required forking the Nagios Core process for every check. The full Nagios Core process includes a lot of things that are not required to actually perform the check, including check scheduling, downtime handling, processing external commands, etc. As a result, forking the Nagios Core process was much slower than was necessary. When the actual check was run, the forked process again forked a shell to run the check and the shell forked to run the plugin.

    In addition, disk files were used as the inter-process communication (IPC) mechanism between the forked Nagios process doing the checking and the main Nagios process handling the check results.

    In Nagios Core 4, the process of performing host and service checks is now accomplished using a lightweight worker processes. Standard worker processes start up with the main Nagios Core process and additional, special-purpose workers, can be started at any time after Nagios Core starts. If the check command is "simple" (no shell escapes), the worker process can run the command directly, avoiding the 2 additional forks previously required.

    Also in Nagios Core 4, the worker processes report the check results to the main Nagios Core process using in-memory IPC mechanisms (the query handler interface), eliminating the disk I/O bottleneck that used to be an issue in large installations.

    When a worker process registers with the main Nagios Core process, it tells Nagios Core what checks it will handle. This feature allows external authors to create special-purpose workers which are optimized to perform certain checks. A sample special-purpose ping check worker is included with the Nagios Core source code in the worker/ping subdirectory.

    More information about workers, including an introduction to creating custom workers can be found in the source-supplied documentation.

  8. Nagios Event Radio Dispatcher (NERD):

    The Nagios Event Radio Dispatcher (NERD) is a query handler based service that streams Nagios Core events to the subscriber. Currently, there are three channels that can be subscribed to: hostchecks, servicechecks and opathchecks.

  9. libnagios:

    libnagios is a library of functions that can be used by developers of query handlers and worker processes. libnagios currently contains the following components.

  10. Documentation:

    Documentation of Nagios Core internals is now provided as part of the source distribution. To create an HTML version of this documentation run 'make dox' from the root of the source distribution tree. The doxygen utilities must be installed to make this documentation.

  11. Tests:

    A much more complete test suite is now incuded with the Nagios Core source distribution.

  12. RPM Spec File:

    The RPM spec file has been completely overhauled to support more current standards.

  13. Deprecated Features:
  14. Obsoleted Features:
  15. Miscellaneous: