<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Managing Redundant Configs</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am looking at ways to manage my nagios configs across 4 servers. I have become tired of adding hosts more than once, and am now looking at methods to have hosts share configs. With only 4 monitoring servers to manage, I feel the cfEngine is an unnecessarily complex route to take for this task. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">My current plan is to use exactly the same host and service files on all servers, but then use local root template objects to define which services are passive. There will probably also be a few variables that will need to be set locally. I want to be able to store all my configs in my subversion repository, and check out updates onto all servers whenever I need to. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Now my main question is this: </FONT>

<BR><FONT SIZE=2 FACE="Arial">      Is it possible to specify an include file based on an environment variable? </FONT>

<BR><FONT SIZE=2 FACE="Arial">      i.e.   cfg_file=/etc/nagios/$HOSTNAME$-primary.cfg </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">     (I realise that I can probably create a soft-link called "local.cfg" and point it to the file I want, but, I would prefer to get rid of all the external dependencies.) </FONT></P>
<BR>

<P><FONT SIZE=2 FACE="Arial">My second question: </FONT>

<BR><FONT SIZE=2 FACE="Arial">    If I go this route, can anyone assist in my research and tell me which config variables will most likely need to be set per host. </FONT></P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Thanks </FONT>

<BR><FONT SIZE=2 FACE="Arial">Peter </FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>

</BODY>
</HTML>