User based display of hosts/services

Andreas Ericsson ae at op5.se
Tue Apr 6 17:14:20 CEST 2004


Michael Shoemaker wrote:
> Is there any way to setup nagios to display a list of hosts/services on a per 
> user basis?
> 
By default, only users who receive notifications (are configured as 
contacts) for a host and its particular services are allowed to see the 
host, service and status detail. This doesn't work with the 
showlog-program, and it can also be overridden by two variables in your 
cgi.cfg (authorized_for_all_hosts and authorized_for_all_services).

> ie: user1 can view hosts 1-10 and its appropriate services, while user2 is 
> only able to view hosts 1-4
> 
set it up like this;
user1 is a member of contactgroup hosts_1_to_10_contacts
hosts 1-10 are members of hostgroup hosts_1_to_10
contactgroup hosts_1_to_10_contacts is registered as 
notification-targets for the hostgroup hosts_1_to_10

user2 is a member of contactgroup hosts_1_to_4_contacts
hosts 1-4 are members of hostgroup hosts_1_to_4 (yes, it's ok for them 
to be in several hostgroups)
contactgroup hosts_1_to_4_contacts is registered as notification-targets 
for the hostgroup hosts_1_to_4

You can pick your own names, if you like. ;-)

-- 
Mvh / Best Regards
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list