Rationalising .cfg files in Nagios Core
Posted: Thu Jul 14, 2016 11:22 am
Good afternoon,
I now have a ridiculously large windows.cfg file which I would like to rationalize, with different groups of hosts spread over different .cfg files.
What I'd like to know is, do I have to define the services that will be used by the hosts in EACH .cfg file or can I place them in a separate .cfg file?
For example, say I have windows1.cfg and windows2.cfg, each containing a separate set of hosts, but with both sets of hosts needing to make use of the same services - do I have to define the services in both windows1.cfg and windows2.cfg or can I define them just once in a file called, say, services.cfg (obviously making sure that I add it to /usr/local/nagios/etc/nagios.cfg)?
As always, thanks in advance for your help.
Pete
I now have a ridiculously large windows.cfg file which I would like to rationalize, with different groups of hosts spread over different .cfg files.
What I'd like to know is, do I have to define the services that will be used by the hosts in EACH .cfg file or can I place them in a separate .cfg file?
For example, say I have windows1.cfg and windows2.cfg, each containing a separate set of hosts, but with both sets of hosts needing to make use of the same services - do I have to define the services in both windows1.cfg and windows2.cfg or can I define them just once in a file called, say, services.cfg (obviously making sure that I add it to /usr/local/nagios/etc/nagios.cfg)?
As always, thanks in advance for your help.
Pete