PDA

View Full Version : Problem with Export Config Files


Gilbert
02-15-2008, 11:23 AM
Salut and hello,

i have a problem when im trying to export my Files:

Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Reading configuration data...

Error: Could not expand hostgroups and/or hosts specified in service (config file '/var/www/html/centreon/filesGeneration/nagiosCFG/services.cfg', starting on line 35)

***> The name of the main configuration file looks suspicious...

Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of another configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'

***> 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.


Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Error: Could not expand hostgroups and/or hosts specified in service (config file '/var/www/html/centreon/filesGeneration/nagiosCFG/services.cfg', starting on line 35)
***> One or more problems was encountered while reading configuration data...

cgi.cfg - movement OK
checkcommands.cfg - movement OK
contactgroups.cfg - movement OK
contacts.cfg - movement OK
dependencies.cfg - movement OK
escalations.cfg - movement OK
hostextinfo.cfg - movement OK
hostgroups.cfg - movement OK
hosts.cfg - movement OK
meta_commands.cfg - movement OK
meta_contact.cfg - movement OK
meta_contactgroup.cfg - movement OK
meta_dependencies.cfg - movement OK
meta_escalations.cfg - movement OK
meta_host.cfg - movement OK
meta_hostgroup.cfg - movement OK
meta_services.cfg - movement OK
meta_timeperiod.cfg - movement OK
misccommands.cfg - movement OK
nagios.cfg - movement OK
perfparse.cfg - movement OK
resource.cfg - movement OK
serviceextinfo.cfg - movement OK
servicegroups.cfg - movement OK
services.cfg - movement OK
timeperiods.cfg - movement OK

Generating SNMPTT configuration files...
4 traps for 1 manufacturers are defined.
SNMPTT configuration files generated.
Now that File which has a Problem looks like this:

# 'PING' service definition 1
define service{
name PING
service_description PING
check_command check_ping!200,20%!500,40%
max_check_attempts 10
normal_check_interval 60
retry_check_interval 60
check_period 24x7
notification_options w,u,c,r,f
stalking_options o,w,u,c
register 0
}

# 'PING' service definition 2
define service{
hostgroup_name Monitoring
service_description PING
use PING
servicegroups PING
check_command check_ping!200,20%!500,40%!3
max_check_attempts 10
normal_check_interval 1
retry_check_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
notification_interval 1
notification_period 24x7
notification_options w,u,c,r,f
stalking_options o,w,u,c
}

Line 35 is marked. I do not see any Problem there.
What can I do to get this to work?

mrcoffee
08-06-2008, 02:39 AM
I got something like that too:
http://forum.centreon.com/showthread.php?t=6337

Did you solve it?