<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=006105513-26062007>That's what I've done.  My understanding in Nagios 
is that a config file is a config file.  I've never tried it, but I believe 
you could stuff your entire config (hosts, services, checkcommands, notification 
commands) into a single file.  You'd be nuts given how incredibly complex 
Nagios configs can get, but you could.  By the same token, you could break 
them out into as many individual files as you like as well as long as your 
nagios.cfg lists all the files it's supposed to read.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=006105513-26062007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=006105513-26062007>I did as you indicated -- keep my hosts (windows or 
otherwise) in my hosts.cfg file.  I tend to sort my config files by 
application rather than OS type so I put the service entries in 
files/directories with still other names.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=006105513-26062007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=006105513-26062007>Mark</SPAN></FONT></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Jerad Riggin [mailto:jriggin@gmail.com] 
  <BR><B>Sent:</B> Tuesday, June 26, 2007 9:53 AM<BR><B>To:</B> Frost, Mark 
  {PBG}<BR><B>Cc:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: 
  [Nagios-users] Windows monitoring<BR></FONT><BR></DIV>
  <DIV></DIV>Thanks for the info.  So for example, it wants me to define 
  new hosts in the windows.cfg.  Is there a point to that?  Can I just 
  put service definitions in the windows.cfg and utilize the hosts I already 
  have defined in hosts.cfg ?<BR><BR>
  <DIV><SPAN class=gmail_quote>On 6/26/07, <B class=gmail_sendername>Frost, Mark 
  {PBG}</B> <<A 
  href="mailto:mark.frost1@pepsi.com">mark.frost1@pepsi.com</A>> 
  wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Jerad,</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT> </DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>I took 
    this to mean that it's a sort of generic/example config file.  You can 
    always break out your configuration into additional files/directories as 
    makes sense for your installation as long as you add new lines in the 
    nagios.cfg file to tell it to read each new file and/or directory you 
    create.</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT> </DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>I found 
    that a few things in that 3.0 doc for monitoring with NSClient++ that 
    weren't correct so you will find yourself making some modifications to get 
    things to work if you've completely copied entries from that doc page. 
    </SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT> </DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Mark</SPAN></FONT></DIV><BR>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV lang=en-us dir=ltr align=left>
      <HR>
      <SPAN class=q><FONT face=Tahoma size=2><B>From:</B> <A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:nagios-users-bounces@lists.sourceforge.net" 
      target=_blank>nagios-users-bounces@lists.sourceforge.net </A>[mailto:<A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:nagios-users-bounces@lists.sourceforge.net" 
      target=_blank>nagios-users-bounces@lists.sourceforge.net</A>] <B>On Behalf 
      Of </B>Jerad Riggin <BR><B>Sent:</B> Tuesday, June 26, 2007 9:16 
      AM<BR><B>To:</B> <A onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:nagios-users@lists.sourceforge.net" 
      target=_blank>nagios-users@lists.sourceforge.net</A> <BR><B>Subject:</B> 
      [Nagios-users] Windows monitoring<BR></FONT><BR></SPAN></DIV><SPAN 
class=q>
      <DIV></DIV>
      <DIV>I'm going through this article: <A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html" 
      target=_blank>http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html 
      </A></DIV>
      <DIV> </DIV>
      <DIV>It is referring to a windows.cfg within nagios.cfg.  I don't see 
      any such commented out line in my nagios.cfg, and I can't even find a 
      windows.cfg at all.  Is the difference that I am running 2.9 and this 
      is referring to 
3.0?</DIV></SPAN></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>