Page 1 of 1
Different users to see different hosts groups in Core Web UI
Posted: Mon Nov 07, 2016 5:23 am
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
Re: Different users to see different hosts groups in Core We
Posted: Mon Nov 07, 2016 10:49 am
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.
Re: Different users to see different hosts groups in Core We
Posted: Tue Nov 08, 2016 10:19 am
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.
Re: Different users to see different hosts groups in Core We
Posted: Tue Nov 08, 2016 11:35 am
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.
Re: Different users to see different hosts groups in Core We
Posted: Wed Nov 09, 2016 6:02 am
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
Re: Different users to see different hosts groups in Core We
Posted: Wed Nov 09, 2016 9:15 am
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.
Re: Different users to see different hosts groups in Core We
Posted: Wed Nov 09, 2016 11:52 am
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.
Re: Different users to see different hosts groups in Core We
Posted: Wed Nov 09, 2016 12:00 pm
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