Page 2 of 2

Re: Ghost Host in Nagios XI 2012R1.2

Posted: Thu Dec 13, 2012 6:06 pm
by zahdin
I just added one host and one service, still same issue and can not apply configurations:

Command submitted for processing...
Waiting for configuration verification.....
Configuration verification failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.

View a snapshot of this configuration error

Tried CCM->Tools-> write/verify following is output:

Write:
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!


Verify:

Error: Template 'xiwizard_linuxsnmp_host' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosts/nagiosxi.cfg', starting on line 14)

Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/SSG550.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/nagiosxi.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/SSG550M.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/SSG550.cfg'...
Processing object config file '/usr/local/nagios/etc/services/nagiosxi.cfg'...
Processing object config file '/usr/local/nagios/etc/services/SSG550M.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Error: Template 'xiwizard_linuxsnmp_host' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosts/nagiosxi.cfg', starting on line 14)
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.

Restart:

RESTART FAILED. CONFIG ERROR:
Error: Template 'xiwizard_linuxsnmp_host' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosts/nagiosxi.cfg', starting on line 14)

Thanks!

Re: Ghost Host in Nagios XI 2012R1.2

Posted: Thu Dec 13, 2012 6:16 pm
by scottwilkerson
Go to CCM -> hosts -> nagiosxi -> Modify
Click Manage templates
just select xiwizard_generic_host Add Selected
remove any others
click close
click save

Go to CCM -> Tools -> Write Config Files
Write
Verify
If Errors post here

If no Errors Restart

Re: Ghost Host in Nagios XI 2012R1.2

Posted: Fri Dec 14, 2012 4:47 pm
by zahdin
I do not have any "nagiosxi" under hosts. I have deleted that already.

Re: Ghost Host in Nagios XI 2012R1.2

Posted: Sat Dec 15, 2012 11:29 am
by scottwilkerson
Lets run the following from the command line

Code: Select all

rm -rf /usr/local/nagios/etc/hosts/nagiosxi.cfg
Then back in the web UI apply configuration