I try to authorize an user to see only some services/hosts that i choose. I found with Google that i need to enable "authorized_for_read_only" options, and add to the hosts/services that i want, the "contacts" options, but when i log in to the web interface, i see 0 service and host..
that's my config :
cgi.cfg :
Code: Select all
authorized_for_system_information=nagiosadmin,nagios
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin,nagios
authorized_for_all_hosts=nagiosadmin,nagios
authorized_for_all_service_commands=nagiosadmin,nagios
authorized_for_all_host_commands=nagiosadmin,nagios
authorized_for_read_only=logiciel
Code: Select all
define contact{
contact_name logiciel_agro
alias Logiciel_Agro
service_notification_period workhours
host_notifications_enabled 0
host_notification_period workhours
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email ******@******.com
}
define contactgroup{
contactgroup_name logiciel
alias Logiciel Agro
members logiciel_agro
}
Code: Select all
# Taille base SQL
define service {
use generic-service
host_name server1,server2,server3
service_description Base_SQL
check_command check_sql
check_interval 60
contacts logiciel_agro,support_agro
contact_groups logiciel
}