Page 1 of 1

Hostgroup view for non admin users

Posted: Mon Sep 10, 2012 5:58 am
by walibix
Hi

Sorry for my pretty bad english

I have Nagios 3.3.1 Core install. As i monitor multisite systems, i want to allow site technican to view their own "hostgroup"

I create 1 contactgroup per site , 1 template host per site , 1 template service per site so i can mix
i had each servers & services for the "good" contactgroup , so email are Ok , and as Admin i have every thing in easymode

i give login/pass to my technicians, adding them in contactgroups so :

When they log with their own loggin/pass , they have
- Host details : Ok ( they see what they have to see )
- services details : Ok ( they see what they have to see )
- Tactical Overview : Ok ( they see what they have to see )
- Hostgroup Overview : they see only EMPTY hostgroups oO?
- Servicegroup Overview : It appears as though you do not have permission to view information for any of the hosts you requested...

Where/How/What do i need to declare so my technicians can see their hostgroup in hostgroup by /nagios/cgi-bin/status.cgi?hostgroup=all&style=overview ?

A little sample of 1 server/service

Code: Select all

define contact{
        contact_name                    techsiteahttp://support.nagios.com/forum/images/icons/edit-find-replace.png
        use                             generic-contact
        email                           techsitea@mymail
        }

define contactgroup{
        contactgroup_name       techsiteaandadmin
        members                 nagiosadmin, techsitea
        }

define hostgroup{
        hostgroup_name Infra-sitea-servers
        }

define host{
        use                     linux-server-sitea
        host_name               Adam
        hostgroups              Infra-sitea-servers
        parents                 Esx-sitea-01
        contact_groups          techsiteaandadmin
        address                 xxx.xxx.xxx.xxx
        }

define service{
        use                     service-sitea
        host_name               Adam
        service_description     Disques
        check_command           check_nrpe!check_disk
        notifications_enabled   1
        }

define host{
        name                             linux-server-sitea
        use                             generic-host
        check_period                    24x7
        check_interval                  5
        retry_interval                  1
        max_check_attempts              2
        check_command                   check-host-alive
        notification_period             24x7
        notification_interval           180
        ;notification_options           d,u,r
        contact_groups                  techsiteaandadmin
        register                        0
        }

define host{
        name                            generic-host
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        notification_period             24x7
        register                        0
        }

define service{
        name                            service-sitea
        use                             generic-service
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  techsiteaandadmin
        register                        0
        }

I try to search & read , but the only answer was : hostgroup does not support contactgroups , no explain what to do to "avoid" or correct my conf

Thx by advance

Regards

Re: Hostgroup view for non admin users

Posted: Mon Sep 10, 2012 5:30 pm
by jsmurphy
The only requirement for seeing a hostgroup is that the user must be a contact for every host in the hostgroup.

Re: Hostgroup view for non admin users

Posted: Tue Sep 11, 2012 1:48 am
by walibix
Thx , it's exactly this

My dependency seems to have problem, as i "force" the contact_groups on all hosts , at the new refresh they got their hostgroups

Many Thanks

Regards

Re: Hostgroup view for non admin users

Posted: Tue Sep 11, 2012 4:38 pm
by jsmurphy
You're welcome :D