Breaking up hosts.cfg into manageable files, possible?

Cal Evans cal at calevans.com
Wed Nov 5 18:36:08 CET 2003


Yes.

I routinely break each of my major hosts out into their own .cfg file. 
(The host line and then all the services.) Simply add that .cfg file to 
the list of .cfg files in the main nagios config file.

Make sure you do a -v before restarting to make sure you haven't borked 
anything.

=C=
* Cal Evans
* http://www.eicc.com
* We take care of your IT,
* So you can take care of your business.
*
* I think inside the sphere.


MT Morales wrote:
> Is it possible to break up the hosts.cfg (and services.cfg) in to 
> small, more manageable files (like for different types of systems)? 
> i.e. do the hosts.cfg and service.cfg object files support some sort 
> of "include <unix-hosts.cfg>" statement?
> 
> sorry if this is too simple a question. I just haven't found anything 
> that addresses that option in the docs.
> 
> Any pointers on that (or solution approach) will be appreciated
> Tomas
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> 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



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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