access to servicedetail only for authenticated contact

rpatl at gmx.at rpatl at gmx.at
Wed Nov 27 09:52:52 CET 2002


Hi 

I am running Nagios 1.0b6 und SUSE Linux 8.1, and latest plugins.
I defined a new user "fernwirken" which should only have access to hosts he
is responsible for(see the config-files below). 
when i logon with this user "fernwirken" i can see (in hostdetail-cgi) only
the hosts which are defined in the hostgroup. this is ok!
But when i go to service detail, i can see the services of all hosts
configured for nagios.
How can i tell nagios, only to show the services for which "fernwirken" is
responsible??

I searched the Mailinglist archive and the DOC, but i am not able to find a
possible answer to this problem.

Any help would be appreciated!

thanx 
Patl


define hostgroup {
hostgroup_name                 fernwirken
alias                          Fernwirken
contact_groups                 fernwirken
members                       
ethau-10_10_108_61_100,ehv1-1_10_108_11_100,ele-1_10_108_19_100,rhv1_10_108_0_253,ait_10_108_19_200,ahv1-1_10_108_11_200,ahv2-1_10_108_11_205,athau_10_108_61_200,fw-hp-thaur-2_10_172_20_241,....}

There is no service in my Config where "fernwirken" is contact for!
The contact for all Services is "nagios"

define service {
host_name                      fw-hp-amlach-1_10_9_172_240
service_description            ping
check_command                  check_ping!100.0,20%!500.0,60%
name                           ping
use                            ping
max_check_attempts             3
normal_check_interval          5
retry_check_interval           1
active_checks_enabled          1
check_period                   24x7
passive_checks_enabled         1
parallelize_check              1
obsess_over_service            1
event_handler                  check_ping
event_handler_enabled          1
flap_detection_enabled         1
process_perf_data              1
retain_status_information      1
retain_nonstatus_information   1
notification_interval          120
notification_period            24x7
notification_options           w,u,c,r
notifications_enabled          1
contact_groups                 nagios
}

---start----cgi.cfg------------------------------------
main_config_file=/usr/local/nagios/etc/nagios.cfg

physical_html_path=/usr/local/nagios/share

url_html_path=/nagios

show_context_help=0
use_authentication=1

default_statusmap_layout=5
default_statuswrl_layout=4
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
nagios_check_command=/usr/local/nagios/libexec/check_nagios
/usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios/cfg'
authorized_for_system_information=nagiosadmin, nagios
authorized_for_system_commands=nagiosadmin,nagios
authorized_for_configuration_information=nagiosadmin,nagios
authorized_for_all_hosts=nagiosadmin,nagios
authorized_for_all_host_commands=nagiosadmin,nagios
authorized_for_all_services=nagiosadmin,nagios
authorized_for_all_service_commands=nagiosadmin,nagios
authorized_for_process_information=nagiosadmin,nagios
host_unreachable_sound=hostdown.wav
host_down_sound=hostdown.wav
service_critical_sound=critical.wav
service_warning_sound=warning.wav
service_unknown_sound=hostdown.wav
xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg
---end----cgi.cfg------------------------------------


-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en




More information about the Users mailing list