bug in hostgroup wildcard?
Greg Haygood
ghaygood at brightlane.com
Sat Nov 2 02:00:41 CET 2002
In trying to setup a wildcard hostgroup, I came across this situation.
Using
define host {
use generic-host
host_name printer2
alias Printer #2
address 192.168.1.101
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period workhours
register 0
}
and
define hostgroup {
name everything
hostgroup_name everything
alias Everything
contact_groups admins
members *
}
nagios seems to pull in all host objects, even though some are unregistered:
[root at localhost] $ /etc/init.d/nagios check
Nagios 1.0b6
Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
Last Modified: 09-15-2002
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 354 services.
Checking hosts...
Checked 105 hosts.
Checking host groups...
Error: Host 'printer2' specified in host group 'everything' is not defined
anywhere!
Checked 19 host groups.
Checking contacts...
Checked 18 contacts.
Checking contact groups...
Checked 16 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking host group escalations...
Checked 0 host group escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 69 host dependencies.
Checking commands...
Checked 91 commands.
Checking time periods...
Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular service execution dependencies...
Checking global event handlers...
Checking obsessive compulsive service processor command...
Checking misc settings...
Total Warnings: 0
Total Errors: 1
***> One or more problems was encountered while running the pre-flight
check...
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 on the main and host config files, as well as
the
'Whats New' section to find out what has changed.
-g
--
Greg Haygood
ghaygood at brightlane.com
v) 678.385.2837
Director of Operations
BrightLane, a TeamStaff, Inc. Company
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
More information about the Users
mailing list