View options for hosts and services

Jim Avery jim at jimavery.me.uk
Thu Feb 26 10:40:40 CET 2009


2009/2/26 Tim Kotterlink <t_kotterlink at hotmail.com>:
> Hi all,
>
> I have got a problem with my Nagios configuration and hope somebody can help
> me. I have got 2 different users. The first one is admin-account and the
> second one is view-account. The configuration for the cgi's is no problem
> and use_authentication is set to 1. That is why I don't have a problem with
> logging in to the Nagios monitoring and getting access to all the different
> views in the left box (service detail, host detail, service problems,
> process info, view config, etc.). It is also no problem for giving one
> account more or less access in the left box. The problem is specific when I
> click on the service details or hosts details. The admin-account is
> configured to be a contact for all of the different hosts and services. The
> view-account is only configured for a couple of hosts and services. When I
> now log in with the view-account I still see all the hosts and services,
> also the ones this account is no contact for. To be more specific.
>
> admin-account
> Is contact for Host1, Host2, Host3, Host4 and Host5. And also for Service1,
> Service2 and Service3.
>
> view-account
> Is contact only for Host1 and Service2.
>
> At this moment I want to log in to Nagios. If I do this with the
> admin-account, I want to see all the hosts and services. If I log in with
> the view-account I only want to see Host1 and Service2. Can this be
> arranged???
>
> At this moment I am using Nagios version 3.0.5. In the past I had this
> working with Nagios version 2.9. Also someone else had this working with
> Nagios version 3.0.3. So is it possible that this is a bug in version 3.0.5?
> If it is, where and how can I ask if this can be fixed?
>
> I already have read the documentation and archives of this maillinglist.
> Unfortunately till now I have found the sollution. Also created a post on a
> forum: http://forums.meulie.net/viewtopic.php?f=59&t=4565&p=15816#p15816


You should have in your cgi.cfg:

authorized_for_all_services=admin-account
authorized_for_all_hosts=admin_account


(so view_account is not authorized for all).  I might be best to
double-check this before looking too much further.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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