OS: centos 6.3 32-bit
version: 2012R1.3
want to setup a user can only see one hostgroup and service, not all of them. How to do it?
thanks
Can nagios xi setup a user only see one hostgroup?
-
- Posts: 41
- Joined: Sun Nov 11, 2012 8:15 pm
-
- Red Shirt
- Posts: 8334
- Joined: Thu Nov 15, 2012 1:20 pm
Re: Can nagios xi setup a user only see one hostgroup?
Make sure the user's authorization level is set to user. Add the user as a contact for any hosts or services you want them to have access to. The user will only have access to viewing hostgroups that contain at least one host that they are set up as a notification contact of. There is no way to set a notification contact to a hostgroup. If you need to add a contact for a large number of hosts, use the bulk modification tool in CCM.
http://assets.nagios.com/downloads/nagi ... Rights.pdf
http://assets.nagios.com/downloads/nagi ... Rights.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Can nagios xi setup a user only see one hostgroup?
Just to add to what abrist said - if you set up a user as a monitoring contact of a host, this user will be able to see the hostgroup that this host is a member of. However, if you set up this user as a monitoring contact of a service, the user won't be able to see the hostgroup at all.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 41
- Joined: Sun Nov 11, 2012 8:15 pm
Re: Can nagios xi setup a user only see one hostgroup?
Thanks for reply. Maybe I did something wrong, I setup the user as contact in every host in that hostgroup, so with most services. But when user login, they still can't see the status, the only way I can make them to see to give them access to all hosts and services. Any ideas?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can nagios xi setup a user only see one hostgroup?
Can you open the following file and make sure that your user has the correct level of authorization that you set in the xi Web UI?
Code: Select all
vi /usr/local/nagios/etc/cgi.cfg
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Can nagios xi setup a user only see one hostgroup?
How did you create this contact?
1. Admin->Manage Users->Add New User->Create as Monitoring Contact
or
2. Core Config Manager->Contacts->Add New
Go to the Core Config Manager->Hosts->Find one of the hosts that you assigned this monitoring contact to, and click on the "View Text Config" actions button (the blue diskette icon).
See if your contact is indeed listed there.
1. Admin->Manage Users->Add New User->Create as Monitoring Contact
or
2. Core Config Manager->Contacts->Add New
Go to the Core Config Manager->Hosts->Find one of the hosts that you assigned this monitoring contact to, and click on the "View Text Config" actions button (the blue diskette icon).
See if your contact is indeed listed there.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 41
- Joined: Sun Nov 11, 2012 8:15 pm
Re: Can nagios xi setup a user only see one hostgroup?
define host {
host_name UPS1
use xiwizard_switch_host
alias HP R5500 XL UPS in Building 13
display_name UPS1
address 192.168.200.9
parents BLD-13-LV-1
max_check_attempts 5
check_interval 10
retry_interval 2
check_period xi_timeperiod_24x7
contacts helpdesk,ups
notification_interval 60
notification_period 24x7
notifications_enabled 1
action_url http://192.168.xxx.x/index.htm
icon_image hp.png
icon_image_alt HP R5500 XL UPS in Building 13
_xiwizard switch
register 1
}
ups user is the contact of UPS2 host, and other ups in that hostgroup. But If I remove "can see all hosts and services" from ups user, it still can't see the status of UPS hostgroup.
host_name UPS1
use xiwizard_switch_host
alias HP R5500 XL UPS in Building 13
display_name UPS1
address 192.168.200.9
parents BLD-13-LV-1
max_check_attempts 5
check_interval 10
retry_interval 2
check_period xi_timeperiod_24x7
contacts helpdesk,ups
notification_interval 60
notification_period 24x7
notifications_enabled 1
action_url http://192.168.xxx.x/index.htm
icon_image hp.png
icon_image_alt HP R5500 XL UPS in Building 13
_xiwizard switch
register 1
}
ups user is the contact of UPS2 host, and other ups in that hostgroup. But If I remove "can see all hosts and services" from ups user, it still can't see the status of UPS hostgroup.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Can nagios xi setup a user only see one hostgroup?
Has this user actually logged in to the xi interface yet, or have you just masqueraded as them?
The user must login to xi and accept the terms before the permissions are actually set in the cgi.cfg .
The user must login to xi and accept the terms before the permissions are actually set in the cgi.cfg .
-
- Posts: 41
- Joined: Sun Nov 11, 2012 8:15 pm
Re: Can nagios xi setup a user only see one hostgroup?
I actually login as "ups" user in another computer as mine is login as "nagiosadmin", and I tried to modify the ups user's home page and not success, either.
Generally what we want "ups" user see is only UPS hostgroup's status, nothing else.
Generally what we want "ups" user see is only UPS hostgroup's status, nothing else.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can nagios xi setup a user only see one hostgroup?
Can you open the following file and make sure that your user has the correct level of authorization that you set in the xi Web UI? It's possible that the changes did not go through..
Code: Select all
vi /usr/local/nagios/etc/cgi.cfg