Apply Configuration error
Posted: Tue Mar 04, 2014 5:46 pm
I've entered a new plugin (check_TomcatApplication) and running the command at the command prompt and testing via the Nagios UI works fine. I created a new host and service as well to test.
When I put in the command and "Apply Configuration" an error occurs and there doesn't seem to be any monitoring of the new service.
This is the error log, thoughts?
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
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/xitest.cfg'...
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/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/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Dev - User LDAP Store.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.192.156.116.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Dev - Tomcat:ceteramfa.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/dev.auth.ceteraqa.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/DEV - PBD SW.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Dev-Tomcat:ceteramfa.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Dev - User LDAP Store.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.192.156.116.cfg'...
Processing object config file '/usr/local/nagios/etc/services/dev.auth.ceteraqa.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/DEV - PBD SW.cfg'...
Error: Invalid max_check_attempts value for host 'Dev - Tomcat:ceteramfa'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/Dev - Tomcat:ceteramfa.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.
When I put in the command and "Apply Configuration" an error occurs and there doesn't seem to be any monitoring of the new service.
This is the error log, thoughts?
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
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/xitest.cfg'...
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/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/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Dev - User LDAP Store.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.192.156.116.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Dev - Tomcat:ceteramfa.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/dev.auth.ceteraqa.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/DEV - PBD SW.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Dev-Tomcat:ceteramfa.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Dev - User LDAP Store.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.192.156.116.cfg'...
Processing object config file '/usr/local/nagios/etc/services/dev.auth.ceteraqa.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/DEV - PBD SW.cfg'...
Error: Invalid max_check_attempts value for host 'Dev - Tomcat:ceteramfa'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/Dev - Tomcat:ceteramfa.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.