Nagios XI Config Failed
Posted: Thu Feb 16, 2017 5:03 am
Hi I received following error message:
Error: Could not find any hostgroup matching 'corporate-linux-prod-servers' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 980)
I have completed below steps for configuration from nagios core to Nagios XI,
Completed Config Import Prep
Imported Configuration Files via ccm
while importing _multiple_host.cfg file getting an error
"You must enter a proper host name. You can not use the characters: \~!$%^&*"'|<>?,()=Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
after checked Config File Management
written the configuration successfully
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
But verifying file is gething Error
Error: Could not find any hostgroup matching 'corporate-linux-prod-servers' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1105)
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any hostgroup matching 'corporate-linux-prod-servers' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1105)
Error processing object config files!
***> 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.
Error: Could not find any hostgroup matching 'corporate-linux-prod-servers' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 980)
I have completed below steps for configuration from nagios core to Nagios XI,
Completed Config Import Prep
Imported Configuration Files via ccm
while importing _multiple_host.cfg file getting an error
"You must enter a proper host name. You can not use the characters: \~!$%^&*"'|<>?,()=Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
after checked Config File Management
written the configuration successfully
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
But verifying file is gething Error
Error: Could not find any hostgroup matching 'corporate-linux-prod-servers' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1105)
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any hostgroup matching 'corporate-linux-prod-servers' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1105)
Error processing object config files!
***> 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.