Verifying configuration
In this recipe, you'll learn the most basic step in debugging a Nagios Core configuration, which is to verify it. This is a very useful step to take before restarting the Nagios Core server to load an altered configuration because it will warn us about possible problems. This is a good recipe to follow if you're not able to start the Nagios Core server at any point because of configuration problems and instead get output like this:
# /etc/init.d/nagios reload Running configuration check... CONFIG ERROR! Check your Nagios configuration.
Getting ready
You should have a working Nagios Core 4.0 or better server running.
How to do it...
We can verify the Nagios Core configuration as follows:
- Run the following command, substituting ...
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.