Page 1 of 1
Missing hosts in Nagios
Posted: Wed Sep 19, 2012 11:22 am
by chadmhs
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
Re: Missing hosts in Nagios
Posted: Wed Sep 19, 2012 3:27 pm
by mguthrie
Are the directories that NagiosQL is writing the config files into added into the main nagios.cfg file?
Re: Missing hosts in Nagios
Posted: Fri Sep 21, 2012 10:19 am
by chadmhs
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
Posted: Fri Sep 21, 2012 10:40 am
by agriffin
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
Posted: Mon Sep 24, 2012 3:17 pm
by chadmhs
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
Posted: Tue Sep 25, 2012 9:23 am
by mguthrie
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.
Re: Missing hosts in Nagios
Posted: Tue Sep 25, 2012 12:28 pm
by chadmhs
Does that path go under a certain heading\section in the nagios.cfg file?
Re: Missing hosts in Nagios
Posted: Tue Sep 25, 2012 12:53 pm
by mguthrie
Nope, anywhere is fine as far as I know.