Page 1 of 1
Nagios Configs
Posted: Tue Dec 06, 2011 6:54 pm
by adm_rfurman
Hey Everyone
I have taken over a Nagios that a previous Administrator had implemented, but I was a little confused. I see a a file structure at \etc\nagios3 and /usr/local/nagios. In /etc/nagios3 I see many .cfg files, but it looks like they are default configs. All the current configs that appear active are in /usr/local/nagios. Are both if these needed as part of the current install.
Robert
Re: Nagios Configs
Posted: Wed Dec 07, 2011 4:33 pm
by jsmurphy
Open up your /usr/local/nagios/etc/nagios.cfg and near the top it should tell you exactly which config files and directories it's loading. I think more than likely if it's just the default configs he created the /etc/nagios3 directory for backups/reference material.
Re: Nagios Configs
Posted: Wed Dec 07, 2011 5:20 pm
by mguthrie
/etc/nagios3 means that the Nagios installation is installed from Ubuntu/Debian's apt packaging, and it doesn't necessarily match a source install of Nagios. The file structure is much different, and there are some things changed in the code as well. My guess is that if you see someone reference a file in /usr/local/nagios/etc, you'll find it on the nagios3 install in /etc/nagios3 instead.
Re: Nagios Configs
Posted: Wed Dec 14, 2011 4:17 am
by josephk
I have installed nagios on an opensuse 11.4 but have failed to configure it. Help me with the first configuration steps. to add hosts, hostgroups and services. I have the format of enetring them but where to edit.
Re: Nagios Configs
Posted: Wed Dec 14, 2011 5:23 pm
by jsmurphy
If you check your /usr/local/nagios/etc/nagios.cfg it will tell you which config files/directories nagios is configured to load, if you add your config data to one of those files/directories nagios will load it.