Hello out there,
the error means that you have a host in your windows.cfg which looks like
define host{
use windows-server ; Inherit default values from a template
host_name winserver ; The name we're giving to this host
alias My Windows Server ; A longer name associated with
the host
address 192.168.1.2 ; IP address of the host
hostgroups allhosts ; Host groups this server is associated
with
}
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
hostgroups allhosts ; Host groups this server is associated
with
in your windows.cfg.
Kind regards,
Dennis Hünseler
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patel, Bipin
Sent: Monday, September 10, 2007 10:42 PM
To: [email protected]
Subject: [Nagios-users] Configuration Error - 3.0.b3
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.
*********
# bin/nagios -v etc/nagios/nagios.cfg
Nagios 3.0b3
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 08-30-2007
License: GPL
Reading configuration data...
Error: Could not find any hostgroup matching 'allhosts' (config file
'/usr/local/nagios/etc/objects/windows.cfg', starting on line 25)
Error: Hostgroup has no members (config file
'/usr/local/nagios/etc/objects/windows.cfg', starting on line 47)
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
It works If I have comment out windows.cfg line in nagios.cfg - No error. But I
also like to monitor my windows boxes.
So what I am doing wrong? Attached are cfg.cfg, nagios.cfg & windows.cfg
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
[email protected]
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