Multitenancy is a great way to give a control of Opsview to your end users. It does so by allowing them to create new Hosts and further Roles and Users all within their own secure, private environment.
To use multitenancy, you must first ensure that your user's role has the CONFIGURETENANCIES option checked. This option is located within the 'Configuration' tab, as shown below:
By default, this option is disabled. Once the option is enabled, you should be able to see 'Multitenancy' under the Configuration menu.
Adding a Tenancy
To add a new Tenancy, navigate to 'Multitenancy' within the Configuration menu. A screen similar to the one below is displayed:
Click on the 'Add New' button which will display a window as shown below.
In the above example, we are creating a new Tenancy based on the 'Opsview Servers' Role. This Role has access to view and modify only the hosts within the 'Monitoring Servers' Host Group, and can only view Service Checks on those Hosts that are within the service group 'Application ' Opsview'.
After clicking 'Submit', the new Tenancy is added:
Note: The primary role cannot be changed after the initial creation, although an administrator can edit the permissions for that role. Opsview will automatically ensure that all other roles in that tenancy will not have more permissions than the primary role.
Now, when a User with the 'Opsview Servers' role logs in, he will be able to add Hosts, create Roles (if the Role 'Opsview Servers' allows), and so on, all based on the Hosts and Service Checks that the primary Role is configured to allow Users to view and edit.