Skip to main content
Question

Delete hosts then deletes services that are shared by other hosts

  • November 27, 2025
  • 1 reply
  • 8 views

Forum|alt.badge.img+1

Hi, 

I’ve used an older version Centreon 2.4.1 (yeah really old! lol) and I never had this issue, but now on 25.10 I have the issue where when I delete a host it then deletes all the services linked to the host even the ones that are used by other hosts.  Obviously this is massive issue and will lead to my staff accidentality deleting services when they delete the hosts.  I don’t remember this being an issue in the older versions of Centreon.

Is there a workaround for this?  I don’t really want to use service groups / host groups as I don’t want hundreds of different host groups based on my services, I need it to be a bit more flexible.

Is there a way to prevents the deletion of the hosts and only allows disabling? or a way to stop centreon deleting the services when the hosts are deleted.

thanks in advance.

steve.

1 reply

Forum|alt.badge.img+11

I would say that as the feature of having services linked to multiple hosts is in decomission progress, i would deduplicate your services. 
Removing the ability to create services linked to multiple hosts or host groups | Community

Typically i would create a service template for those “shared” services and create seperate services linked to all the hosts that previously shared the one service. That way when a host is removed, only the service linked to that host will be removed.