Hello,
I recently installed Nagios & NagiosQL, everything seems to be ok. I am able to add hosts into QL but they never show up in Nagios on the Hosts page nor are they listed under the Host Groups. When I click "Check configuration files" in QL under tools I get "0 warnings, 0 errors, Written configuration files are valid. Nagios can be restarted". After I restart Nagios and check the hosts are still missing. Looking for a little guidance on this.
Thanks,
Chad
Missing hosts in Nagios
Re: Missing hosts in Nagios
Are the directories that NagiosQL is writing the config files into added into the main nagios.cfg file?
Re: Missing hosts in Nagios
Thanks for the reply. I'm relatively new to Nagios, which specific files should I be looking for in the nagios.cfg file?
Re: Missing hosts in Nagios
That varies from system to system. You're looking for the cfg_file and cfg_dir options in nagios.cfg. The files and directories they name should be the ones NagiosQL is writing to.
Re: Missing hosts in Nagios
Thanks. I see numerous cfg_file & cfg_dir entries in the nagios.cfg file but don't see anything related to the hosts that I setup anywhere in that file. If I need to update manually, where exactly would I do that?
Re: Missing hosts in Nagios
You can tell Nagios to pull in the configs from a certain directing by adding:
That way when you want to add new hosts, you just create the file and then drop them in that directory. If the file or directory is not specified in nagios.cfg, they won't be pulled into the monitoring configuration.
Code: Select all
cfg_dir=/path/to/mynewconfigsRe: Missing hosts in Nagios
Does that path go under a certain heading\section in the nagios.cfg file?
Re: Missing hosts in Nagios
Nope, anywhere is fine as far as I know.