Skip to main content

Hi,

I had trouble duplicating hosts from the Web UI. Every time I try to duplicate a host with associated services, the services for the duplicated hosts aren’t displayed for the user account, but I can see them with the admin account.

I’ve the centreon’s 23.04.6 version running on debian bullseye.

Waht’s supprising is that, when I create the hosts from scratch, and choose to deploy linked services, it works fine.

I’ve checked all the configurations for my user account, and it seem to have every right needed to do what I want. And I couldn’t figure out what’s happening.

Do anyone have a clue ou can give me some hints on where to look at ?

Thanks in advance for your help.

Hi @Oxeegen , your services are linked to a servicegroup that your user can access (in ACLs definition) ?

When you duplicate the host, can you check if duplicated services are still linked to the servicegroups(s)?


Hi @Laurent,

My services aren’t linked to a servicegroup. The only thing that is linking my services to the hosts is, in Hosts > Templates > {Template_name} > Relations and “Linked Service Templates”.

I have setup an ACLs where everything is allowed, like this my user have the same access as admin, so I don’t have to use the admin account.

What’s happening is that, when I duplicate an host, wheter it is with the admin account or the user account, all services are created correctly. But, I can only see the services with the admin account.

And also, when the host is duplicated, if I check the box “Create Services linked to the template too” in the host configuration, the services are still not displayed for the user account.


Hi @Oxeegen , a cron running every 5 minutes calculate access to resources. Maybe that’s why your user don’t see in realtime services.


Hi @Laurent,

Even after few days, the services create with and linked to the ducplicated host aren’t displayed on a user’s web interface, only on the admin account.

But maybe I’ve a clue.

When I create a new host from scratch as a user I have this field that appears as mandatory

So, I add my ACL group to enable access to all users, hosts and services are visible for all, no problem

But when Icreate a host from scratch as admin user I do not have this field appears and all these hosts (and linked services) aren’t visible for any other users

And when I duplicate a host as a user (not admin user) this field does not appears too and only the host is visible from user’s web interface, services are visible from admin account only


When you create an host from a user with ACL, you have to set a minium 1 hostgroup in order to have access to this host.

When you are admin, you can use “Hostgroup Relations” field.


yes, we know it, but it seems that they are a bug or something wrong with ACL, but we don’t have any exotic configuration.

We have also a very old centreon configured as the same and we do not have this issue.

I find soemthing more this morning, if I set the “Admin” parameter to yes for a user, this user instantly show all the hosts and services

Do you have any idea where the problem may be, maybe you need me to share my configuration about users, groups and ACL ?


Hi @Oxeegen, I reproduce your issue.

I created an internal ticket to manage it.

Because the sprint (for 2 weeks) start this morning, we will manage the ticket in the sprint after.

Sorry for the inconvenience.

The workaround is to modify the ACL resources definitions to force the ACL calculation by the cron.

 


Ok thanks a lot ! 

We can wait 2 weeks about this, no problem, just can you explain how to do the workaround ?


Reply