How to hide a specific service to a specific contact_groups

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
paolo974
Posts: 8
Joined: Tue Jan 23, 2018 1:24 am

How to hide a specific service to a specific contact_groups

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
paolo974
Posts: 8
Joined: Tue Jan 23, 2018 1:24 am

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

Post by paolo974 »

Thank you for your feedback
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

paolo974 wrote:Thank you for your feedback
Let us know if we can be of further assistance
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked