Page 2 of 2

Re: Hide Services from Contact Group

Posted: Tue Apr 23, 2019 11:41 am
by nms
Hi,

Correct. The aim is to hide some services from the user, but if an issue on the host occurs (host down) the user still sees it.
Is this possible? Or there a workaround that can be done?

Rgds,

Matthew

Re: Hide Services from Contact Group

Posted: Tue Apr 23, 2019 4:27 pm
by ssax
I don't think this is possible based on the current multi-tenancy functionality, here's why:

In order to see the HOST alerts the user viewing the Operations Center screen has to be a contact of the HOST which automatically gives them permissions to view the SERVICES. Now they see all the services, which you don't want.

So if you remove them from the HOST and then only show them SERVICE_Y, they will not see the HOST alerts anywhere because of the multi-tenancy functionality.

I can't think of a way to get what you want based on current functionality.

Re: Hide Services from Contact Group

Posted: Tue Apr 23, 2019 4:42 pm
by cdienger
One potential work around - you could create a service check that uses the same plugin and settings as the host check. It would be a service but function the same as the host check.

Re: Hide Services from Contact Group

Posted: Wed Apr 24, 2019 4:27 am
by nms
As a workaround, you can create a duplicate host (with a slightly different config name) and assign it to the user group.
From the original host with its services, you can remove the user group so some services can be hidden.
With this method at least the em group of users will know that the host is down, whilst some services are still hidden from them.

Can this be a feature request?

Rgds,

Matthew

Re: Hide Services from Contact Group

Posted: Wed Apr 24, 2019 12:27 pm
by cdienger
Good work around.

The functionality is a part of Nagios Core's implied inheritance functionality(https://assets.nagios.com/downloads/nag ... tance.html). A change like this likely wouldn't be a trivial, but the first step would be to file a feature request on the project's github page - https://github.com/NagiosEnterprises/nagioscore/issues