Page 1 of 1

Upgrade to 2014 fails

Posted: Sat May 17, 2014 11:45 am
by PF-JH
Upgrading from 2012R7, and am getting the following error:
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.

Config check shows the following:
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 135)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 117)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/check_nrpe_version.cfg', starting on line 14)
Error processing object config files!


This was working fine before the upgrade attempt, and now the monitoring service won't start.

Re: Upgrade to 2014 fails

Posted: Mon May 19, 2014 9:15 am
by slansing
Looks like the new additions to the verification process must have found an old ghost host/service.

Do you actually have a host, or service description on the first config line in:

/usr/local/nagios/etc/services/check_nrpe_version.cfg

This service may have been removed from the database previously, but got caught in it's flat config file and may simply need to be removed manually.