<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Nagios-users] Includes for services.conf</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Actually, I create templates for each service instead and place them in a directory.</FONT>
<BR><FONT SIZE=2>Then I replace</FONT>
</P>
<P><FONT SIZE=2>cfg_file=hosts.cfg</FONT>
<BR><FONT SIZE=2>cfg_file=services.cfg</FONT>
</P>
<P><FONT SIZE=2>I use the following:</FONT>
</P>
<P><FONT SIZE=2>cfg_dir=host1</FONT>
<BR><FONT SIZE=2>cfg_dir=host2</FONT>
<BR><FONT SIZE=2>cfg_dir=routers/router1</FONT>
<BR><FONT SIZE=2>cfg_dir=routers/router2</FONT>
<BR><FONT SIZE=2>etc...</FONT>
</P>
<P><FONT SIZE=2>(of course I still have hosts.cfg and services.cfg with generic-host and generic-service)</FONT>
</P>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>"Computer science is as much about computers as</FONT>
<BR><FONT SIZE=2> astronomy is about telescopes" -- Edsger Dijkstra</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Anthony Tonns, UNIX Administrator - atonns@mail.ivillage.com</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Jason Dixon [<A HREF="mailto:jasondixon@myrealbox.com">mailto:jasondixon@myrealbox.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, December 18, 2002 4:51 PM</FONT>
<BR><FONT SIZE=2>To: Nagios List</FONT>
<BR><FONT SIZE=2>Subject: Re: [Nagios-users] Includes for services.conf</FONT>
</P>
<BR>
<P><FONT SIZE=2>Sorry, I just read the documentation a bit deeper and found the "trick"</FONT>
<BR><FONT SIZE=2>that allows me to specify multiple hosts per service. This looks even</FONT>
<BR><FONT SIZE=2>better. :)</FONT>
</P>
<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>J.</FONT>
</P>
<P><FONT SIZE=2>On Wed, 2002-12-18 at 16:27, Jason Dixon wrote:</FONT>
<BR><FONT SIZE=2>> Is it- or would it be- possible to implement "includes" in the</FONT>
<BR><FONT SIZE=2>> services.conf file. It would be much more scalable, from a</FONT>
<BR><FONT SIZE=2>> administrator's POV, to break the services.conf file into one small</FONT>
<BR><FONT SIZE=2>> template with a list of host "includes". Then you could manage each</FONT>
<BR><FONT SIZE=2>> host's services in a separate file. This has a myriad of applications,</FONT>
<BR><FONT SIZE=2>> IMHO.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> If it is already possible, perhaps someone could point me in the right</FONT>
<BR><FONT SIZE=2>> direction?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Thanks,</FONT>
<BR><FONT SIZE=2>> -J.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!</FONT>
<BR><FONT SIZE=2>> Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,</FONT>
<BR><FONT SIZE=2>> MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.</FONT>
<BR><FONT SIZE=2>> T H I N K G E E K . C O M <A HREF="http://www.thinkgeek.com/sf/" TARGET="_blank">http://www.thinkgeek.com/sf/</A></FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Nagios-users mailing list</FONT>
<BR><FONT SIZE=2>> Nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users" TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>-------------------------------------------------------</FONT>
<BR><FONT SIZE=2>This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!</FONT>
<BR><FONT SIZE=2>Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,</FONT>
<BR><FONT SIZE=2>MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.</FONT>
<BR><FONT SIZE=2>T H I N K G E E K . C O M <A HREF="http://www.thinkgeek.com/sf/" TARGET="_blank">http://www.thinkgeek.com/sf/</A></FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Nagios-users mailing list</FONT>
<BR><FONT SIZE=2>Nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users" TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
</P>
</BODY>
</HTML>