Writing debugging information to the Nagios log file

In this recipe, you'll learn how to use the debugging log file in Nagios Core to get various kinds of process information from the running program, considerably more than available in the standard log_file. This is useful not just for debugging purposes when Nagios Core is doing something unexpected at runtime, but it is also useful to get a better idea of how the server is working in general and with your particular configuration.

Getting ready

You will need a Nagios Core server with version 4.0 or greater. You will need access to change the nagios.cfg file and to restart the server.

In this example, we'll simply log everything we possibly can and then explain how to refine the logging behavior ...

Get Nagios Core Administration Cookbook - Second 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.