Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/objects/templates.cfg')

Hello,

I have installed a fresh NAGIOS Core server 4.4.5 and begin to transfer the CFG files from my old FAN distrib.
But I have an error with my templates.cfg
The following message appears when checking the configuration:

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/objects/templates.cfg', starting on line 622)

The definition is correct and works fine for ages on the FAN. If I remove this define service in the templates.cfg, it generates an error on an other define service and so on.

define service{
        name                     decisionnel-service
        use                      generic-service
        max_check_attempts       3
        check_interval           3
        notification_interval    240
        retry_interval           1
        contact_groups           Decisionnel
        }

Thanks a lot for your help.

“use …” includes a template which is probably different from the one used in your FAN environment. Please compare the template definitions.