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
Different users to see different hosts groups in Core Web UI
-
neworderfac33
- Posts: 329
- Joined: Fri Jul 24, 2015 11:04 am
-
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
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.
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
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
Re: Different users to see different hosts groups in Core We
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.
@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
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
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
This does split the web UI. I have multiple users that are only allowed to see certain hosts and it works without issue.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
Nagios Core 4.1.1 running on Ubuntu 14.04
Re: Different users to see different hosts groups in Core We
@tgrtjake is correct, thank you!tgrtjake wrote:This does split the web UI. I have multiple users that are only allowed to see certain hosts and it works without issue.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
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
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
The thread can be closed.
Pete