Nagios Users service authorization

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rshankar93
Posts: 7
Joined: Fri Jan 31, 2014 1:05 pm

Nagios Users service authorization

Post by rshankar93 »

I have a nagios instance which is monitoring about 5 hosts. I want to add a new user and allow that user to only have access to view one of the hosts and the services being monitored on that. I'm not sure how to achieve this. In the cgi.cfg file I can see the authorized_for_all_services, authorized_for_all_hosts variables, but it seems that listing the username under those variables will provide them access to all hosts and services. How do I only provide these users authorization to view one specific host and all the services that are monitored on it?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Users service authorization

Post by abrist »

Create a contact with the same username and enable that contact only on the objects you want that user to be able to view.
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.
Locked