Page 1 of 1

How to hide a specific service to a specific contact_groups

Posted: Mon Jan 28, 2019 2:38 am
by paolo974
Hello,

I'm using Nagios Core 4.0.8

I would like to know how to hide a specific service to a specific contact_groups.
I would like the specific service to be hidden from Nagios Web Interface.

I have by example the 2 service definitions below:

Code: Select all

define service {
        host_name       myhost
        service_description     service_to_be_visible
        check_command   my_check_command1
        contact_groups  admins,operators,viewers
        ...
}

define service {
        host_name       myhost
        service_description     service_to_be_hidden
        check_command   my_check_command2
        contact_groups  admins,viewers
        ...
}
So I would like "operators" to be able to see "service_to_be_visible"
but not able to see "service_to_be_hidden" for host "myhost" on the Web Interface

Thank you for your help

Re: How to hide a specific service to a specific contact_gro

Posted: Tue Jan 29, 2019 8:32 am
by scottwilkerson
How you have it setup would be correct unless the members of operators are also a member of admins,viewers OR you have added any of the contacts in operators to the cgi.cfg that allow them access to see all of the objects.

Re: How to hide a specific service to a specific contact_gro

Posted: Fri Feb 15, 2019 6:01 am
by paolo974
Thank you for your feedback

Re: How to hide a specific service to a specific contact_gro

Posted: Fri Feb 15, 2019 8:03 am
by scottwilkerson
paolo974 wrote:Thank you for your feedback
Let us know if we can be of further assistance