Service has no hosts and/or service_description (config file
Posted: Wed Feb 19, 2020 11:59 am
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:
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.
Thanks a lot for your help.
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:
Code: Select all
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/objects/templates.cfg', starting on line 622)
Code: Select all
define service{
name decisionnel-service
use generic-service
max_check_attempts 3
check_interval 3
notification_interval 240
retry_interval 1
contact_groups Decisionnel
}