Breaking up hosts.cfg into manageable files, possible?

Anurag Gupta agupta at yahoo-inc.com
Wed Nov 5 19:04:18 CET 2003


Yes, it is possible. The most reasonable way is to create a set of files for
each hostgrouop (hostgroups are groups of related hosts). Put them in a
directory and put a cfg_dir directive in nagios.cfg file. All files in that
directory will then be picked up by nagios

-anurag

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of MT Morales
Sent: Wednesday, November 05, 2003 7:54 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Breaking up hosts.cfg into manageable files,
possible?



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