<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Hello out there,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>the error means that
you have a host in your windows.cfg which looks like<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>define host{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
use windows-server ; Inherit default values from a template<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
host_name winserver ; The name we're giving to this host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
alias My Windows Server ; A longer name associated with the
host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
address 192.168.1.2 ; IP address of the host<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
hostgroups allhosts ; Host groups this server is associated with<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Where the host is
defined as a member of the hostgroup allhosts which isn’t defined anywhere.
Take a look at your configs where your hostgroups are defined and search for
allhosts. If you can’t find a matching entry just comment out the line<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
hostgroups allhosts ; Host groups this server is associated with<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>in your windows.cfg.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-family:"Arial","sans-serif";color:#1F497D'>Kind regards, <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif";
color:#1F497D'>Dennis Hünseler<br>
<br>
</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>
</div>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b>On Behalf Of </b>Patel,
Bipin<br>
<b>Sent:</b> Monday, September 10, 2007 10:42 PM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagios-users] Configuration Error - 3.0.b3<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have just installed nagios 3.0b3 on Linux
box 2.4.21-47.ELsmp #1 SMP. I am trying to monitor windows machines and when I
have uncommented windows.cfg line from /etc/nagios/nagios.cfg and ran
configuration check, I am getting following errors.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>*********<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US># bin/nagios -v etc/nagios/nagios.cfg<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Nagios 3.0b3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Copyright (c) 1999-2007 Ethan Galstad
(http://www.nagios.org)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Last Modified: 08-30-2007<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>License: GPL<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Reading configuration data...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Error: Could not find any hostgroup
matching 'allhosts' (config file '/usr/local/nagios/etc/objects/windows.cfg',
starting on line 25)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Error: Hostgroup has no members (config
file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>***> One or more problems was
encountered while processing the config files...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US> Check your
configuration file(s) to ensure that they contain valid<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> directives and
data defintions. If you are upgrading from a previous<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> version of Nagios,
you should be aware that some variables/definitions<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> may have been
removed or modified in this version. Make sure to read<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> the HTML
documentation regarding the config files, as well as the<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> 'Whats New'
section to find out what has changed.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>It works If I have comment out windows.cfg
line in nagios.cfg – No error. But I also like to monitor my windows boxes.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So what I am doing wrong? Attached are
cfg.cfg, nagios.cfg & windows.cfg<o:p></o:p></span></p>
</div>
</body>
</html>