Split configfiles: services.cfg

Stephan Janosch stephan.janosch at interface-business.de
Mon Dec 20 13:02:18 CET 2004


nagios wrote:
> Hi
> 
> We are testing nagios and want to come away from BigBrother. Could these 
> configfiles be splitted up? I meen, about 50 hosts will blow up 
> services.cfg to a large complex file. Especially with several services 
> per host. It would be fine if I could do it like this:
> services-host1.cfg, services-host2.cfg, etc...
> 
> Thanks, Florian

It's possible to split them up. Just have a look at nagios.cfg. 
Somewhere in the top you should find the right statements.

cfg_file=/usr/local/nagios/etc/services1.cfg
cfg_file=/usr/local/nagios/etc/services2.cfg

If you have nagios2 in use, you probably want to use this:

 > Object Configuration Directory
 > Format: 	cfg_dir=<directory_name>

Stephan



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list