Different users to see different hosts groups in Core Web UI

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
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Different users to see different hosts groups in Core Web UI

Post by neworderfac33 »

Good morning,

Having perused various threads on the subject of why you shouldn't have multiple instances of Nagios Core on the same server, I wanted to ask the same question in a slightly different way.

I have two groups of users who need to monitor two completely separate groups of hosts.

Although I've seen documents showing how to configure Nagios XI to do this, is there any way in which I can configure Core such that one group sees just the first set of hosts in their web interface and the other group sees just the second set?

Thanks in advance

Pete
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Different users to see different hosts groups in Core We

Post by dwhitfield »

Is there any reason you can't put one Nagios server in a VM on the physical host you have?

If you run this setup, I would suggest putting both Nagios servers in different VMs. That way you can take snapshots of both and blow both of them away without changing the other.

I know this is not what you are asking, but the best time to go to the VM setup is at the beginning. That way, you aren't having to migrate things. Maybe we are already past that, but whatever to get you this info before you went too far down the "wrong" path.
tgrtjake
Posts: 20
Joined: Thu Sep 25, 2014 10:35 am

Re: Different users to see different hosts groups in Core We

Post by tgrtjake »

The way I do it is I create a contactgroup for group A hosts and group B hosts then add the contactgroup to each cfg you want the user to have access to.
Nagios Core 4.1.1 running on Ubuntu 14.04
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Different users to see different hosts groups in Core We

Post by rkennedy »

Thanks @tgrtjake - this is the route I would go if I was looking for a multi-environment setup. @dwhitfield is right if you're looking for multiple setups.

@neworderfac33 - let us know if you have any further questions.
Former Nagios Employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Different users to see different hosts groups in Core We

Post by neworderfac33 »

Thanks for your suggestion, although wouldn't this only allow me to split out the email alerting side of things, but not the web UI?
Bearing in mind that my current installation is on a virtual server anyway, this would be a VM within a VM!
I'd better back up my config files Many, MANY times!

Pete
tgrtjake
Posts: 20
Joined: Thu Sep 25, 2014 10:35 am

Re: Different users to see different hosts groups in Core We

Post by tgrtjake »

peterooney wrote:Thanks for your suggestion, although wouldn't this only allow me to split out the email alerting side of things, but not the web UI?
Bearing in mind that my current installation is on a virtual server anyway, this would be a VM within a VM!
I'd better back up my config files Many, MANY times!

Pete
This does split the web UI. I have multiple users that are only allowed to see certain hosts and it works without issue.
Nagios Core 4.1.1 running on Ubuntu 14.04
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Different users to see different hosts groups in Core We

Post by rkennedy »

tgrtjake wrote:
peterooney wrote:Thanks for your suggestion, although wouldn't this only allow me to split out the email alerting side of things, but not the web UI?
Bearing in mind that my current installation is on a virtual server anyway, this would be a VM within a VM!
I'd better back up my config files Many, MANY times!

Pete
This does split the web UI. I have multiple users that are only allowed to see certain hosts and it works without issue.
@tgrtjake is correct, thank you!

Contacts are used for notifications AND permissions for viewing x service / host.
Former Nagios Employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Different users to see different hosts groups in Core We

Post by neworderfac33 »

I've just played around with this and got it to work successfully - thanks to all for your help!

The thread can be closed.

Pete
Locked