Checking Nagios Configuration Files for Errors

nagios

One of my servers runs Nagios (open-source) that was installed by someone else in the past and worked just fine, until I changed the windows.cfg file and now when I try to start the daemon, it says that there are errors in the configuration. When I try to run the config verification, it doesn't give any errors or warnings, but that only checks nagios.cfg which I did not change.

The question is, is it possible to verify/debug windows.cfg and commands.cfg ? Or can this be caused by another issue?

Thanks.

Best Answer

If you look at the contents of nagios.cfg, it will almost certainly include references to windows.cfg and commands.cfg.

When you run the config verification that you mentioned, it traverses through all of the files referenced by nagios.cfg as well, so you are checking the changes you made as well.