Skip to main content
Question

Error parsing cfg file : Service already exists

  • 24 July 2024
  • 1 reply
  • 21 views

Hello everyone,

I'm going from one problem to another and the latest is when I export my configuration.

I have a service which, even if I remove it or rename it in the /var/cache/centreon/config/engine1/serviceTemplates.cfg file, comes back every time. And this duplication blocks the export.

I've searched the resource.cfg, and I don't see why this service, the PING, is repeated. Is there a “hard” place where it's written to be parsed afterwards?

 

 

define service {
name PING
check_command OS-Linux-SNMP-Tcpcon!100.0,20%!500.0,60%
check_period 24x7
max_check_attempts 3
check_interval 10
retry_interval 2
register 1
use local-service
}

define service {
name Balloning memory
check_command OS-Linux-SNMP-Traffic-Name!1!10
check_period 24x7
max_check_attempts 3
check_interval 10
retry_interval 2
register 1
use generic-service
}

define service {
name PING
check_command OS-Linux-SNMP-Tcpcon!100.0,20%!500.0,60%
check_period 24x7
max_check_attempts 3
check_interval 10
retry_interval 2
register 1
use local-service
}

help will be really appreciated

1 reply

Badge +3

Hi! We had this issue with services mapped to a host group and the host while sharing the same name. Have you tried to remove the host from all host groups?

Reply