User accessing only one host group

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
alexprinou
Posts: 23
Joined: Sat Apr 18, 2015 9:06 am

User accessing only one host group

Post by alexprinou »

Hello,
how do I get a particular User access only one host group on the map of Nagios? :D :D :D :D
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: User accessing only one host group

Post by Box293 »

When restricting nagios users to objects, it comes down to assigning the contact object to all the objects the user is allowed to see. Unfortunately this cannot be simply applied to a hostgroup.

This document is for Nagios XI however the principles are the same for Nagios Core:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

This presentation might also help:
https://www.youtube.com/watch?v=y3rOo0cHv5I

Does this answer your question?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: User accessing only one host group

Post by eloyd »

Assuming you're using Nagios Core, not XI, the best you can do is assign contact X to each service/host combination that is appropriate, and then create an htpasswd entry for user X, and then when user X logs into the Nagios interface, they should only see the host/services that they are assigned to.

You can accomplish this through servicegroups, but not hostgroups.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: User accessing only one host group

Post by tmcdonald »

@alexprinou, let us know if either of these posts work for what you need!
Former Nagios employee
Locked