Page 1 of 1

Multitenancy view hosts / not view services

Posted: Wed Dec 21, 2016 7:23 pm
by szalaj
Hi, I am trying to set visibility for hosts and only some services which are checked on it. Case is:

I have two Nagios users: web & secweb
One host, which is checked by alive check: Host1
On Host1 I am monitoring two services: HTTP & HTTPS

Ultimate goal would be if both users will see Host1 status (UP/DOWN) and only services belongs to them (web - only HTTP & secweb - only HTTPS).
Host has two services monitored, but users should see Host and only one service.
If I add any user as Host1 contact, it can see both services as well as Host1.

Is it even possible?
Not afraid of some scripting etc.

Thanks.

Re: Multitenancy view hosts / not view services

Posted: Thu Dec 22, 2016 1:58 pm
by rkennedy
You need to explicitly specify the contact assigned to the service, otherwise you'll experience implied inheritance which pushes the same contact down to your services.

See this link for an explanation - https://assets.nagios.com/downloads/nag ... tance.html