We are upgrading our Nagios XI from 2012R2.5 to 5. But we having cfg error during upgrade.
"Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration."
Next, we run "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg"
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 24)
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 126)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/xxx.xxx.xxx.cfg', starting on line 13)
Error processing object config files!
It looks like all the .cfg having errors.
Thanks.
Regards,
Ryan