Multi-tenancy with nagios core

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
Issac08
Posts: 38
Joined: Mon May 08, 2017 2:01 am

Multi-tenancy with nagios core

Post by Issac08 »

Whether nagios core supports multi-tenancy ...I have 6 geographical locations with 800 servers and 200 NW devices each ..It is possible to make remote nagios server in each location and only alarms and metrics can be forwarded to central site where team can manage.
blackrino9
Posts: 27
Joined: Wed Apr 12, 2017 7:19 pm

Re: Multi-tenancy with nagios core

Post by blackrino9 »

Yes, you should be able to isolate what individual users can see and do by using contact groups. The contact and contact group object can do more than just define who gets notified when an alarm is tripped. They can be used to control access to the objects defined in Nagios as well. The trick is to create the account without defining it in the cgi.cfg file. That tells Nagios to use the contact/contact group to authorize access to objects and actions in the GUI.

If you're using Nagios authentication, add a new user to the htpasswd file but don't add them to the cgi.cfg. Then, create a new user contact of the same username that is in the htpasswd file (enable the can submit commands flag for users who should be able to run macros), add them to contact groups, then apply the contact groups to the resources each should have access to and you should be good to go.

It will take some planning to get everything running the way you want it but once you're done, adding a new organizational user should be as simple as creating their contact and adding them to an existing group.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Multi-tenancy with nagios core

Post by dwhitfield »

@Issac08, while what @blackrino9 is correct, I'm not sure it answers your question completely. It's great information in general though. Thanks @blackrino9!

You could use SNMP Traps to do what you are talking about, or you could use Fusion: https://www.nagios.com/downloads/nagios-fusion/
Issac08
Posts: 38
Joined: Mon May 08, 2017 2:01 am

Re: Multi-tenancy with nagios core

Post by Issac08 »

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

Re: Multi-tenancy with nagios core

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Locked