organizing config files with templates
Simon Kainz
simon.kainz at tugraz.at
Wed Aug 19 11:52:16 CEST 2009
mail at catsnest.co.uk wrote:
> On Wed, Aug 19, 2009 at 3:31 AM, Terry <td3201 at gmail.com
> <mailto:td3201 at gmail.com>> wrote:
>
> Hello,
>
> I have a medium-sized installation (>10,000) services) in a manged
> services/data center environment. I am curious how others in these
> types of multi-tenant environments organize their configuration files.
> There are multiple things to consider:
> - templates
> - cfg_dirs
> - grouping
>
> I am considering cfg_dirs in this fashion:
> /etc/nagios/objects/hosts/customer.cfg
> /etc/nagios/objects/services/customer/host.cfg
>
> I am considering templates in this fashion:
> /etc/nagios/objects/services/templates/sql.cfg (will contain
> microsoft sql type services)
> This template will look like this:
> define service{
> use standard-server
> hostgroup_name sql
> service_description microsoft sql server service
> check_command check_nrpe_win_service_mssql
> }
> Then I can just add hosts to the sql hostgroup to give them this
> service.
>
> What am I missing? What do others do that might make my life easier?
>
>
> Sounds a lot like what I use... I also use host-templates for example:
>
> define host{
> use solaris,dns,an-other-app
> address...
> }
>
> the solaris host-template applies standard checks like disk, cpu, SMF.
> the solaris-10-global template applies checks such as zone-checks
Hmm, could you eventually explain how the "solaris host-template applies
standard checks (which seem to me like services) ? How do you do this ?
Regards,
>
> the same can be applies to a windows / rhel template
>
> our rhel and solaris templates actually "use" basic *nix templates too.
>
> this was each hosts config is kept to a minimum. also keeping each host
> in its own .cfg file helps eg .../customer1/server-name1.cfg then any
> host specific checks (eg url checks) can be added to that one config
> file too.
>
> Ritchie
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> <mailto: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
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
--
DI Simon Kainz
Graz, University of Technology
Department Computing
Phone: ++43 (0) 316 / 873 6885
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090819/431b1584/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
-------------- next part --------------
_______________________________________________
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