Make a dashboard "Default HomePage" for a list of 25 user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Make a dashboard "Default HomePage" for a list of 25 user

Post by vishfx »

Hi Nagios team,

Am using NagiosXI 5.5.9 on RHEL 7.3

I want to make a dashboard "Default HomePage" for a list of 25 users.
Dashboard has been already deployed to these users.

However, "Home Page Modification" component does not allow selection of users.
Want to avoid users to modify "Home Page Options"

NOTE: We have around 100+ users and different set of users needs to be shown different Dashboards.

Please advise.

Regards,
Vish.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Make a dashboard "Default HomePage" for a list of 25

Post by npolovenko »

Hello, @vishfx. Even if we manage to find a way to deploy the same URL for the home page for multiple users at once, each deployed dashboard still has its own specific URL(generated for each user during the deployment) so you will need to change the default URL for each user by hand regardless.
I can submit a feature request on your behalf to add functionality to deploy dashboards to only selected users in the future. Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Re: Make a dashboard "Default HomePage" for a list of 25

Post by vishfx »

I understand that feature does not exist currently.
each deployed dashboard still has its own specific URL(generated for each user during the deployment)
How can I get this deployed URL details for each user and How can I set it as a Homepage for each user ?

Regards,
Vish.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Make a dashboard "Default HomePage" for a list of 25

Post by npolovenko »

First, you need to enable Custom URL in the Home Page Modification Component(see page 2).
https://assets.nagios.com/downloads/nag ... g-Page.pdf
You also need to check the box that says "Allow users to override their default home page settings".

Then if you open another user and go to the Home Page Options menu, you will be able to set the home page to another Custom URL. See End-User Customization on page 3.

Now, because each user has a custom URL for the deployed dashboard, you need to sign in as that user and copy the dashboard url so you can paste it in the Home Page Options menu.
Untitled.png
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vishfx
Posts: 134
Joined: Tue Apr 24, 2018 12:30 pm

Re: Make a dashboard "Default HomePage" for a list of 25

Post by vishfx »

I am aware this process.

But, these users are AD based users, so your suggestion will only work if they themselves do this process.

We want to avoid this, and provide the Custom Home Page as default.

Regards,
Vish.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Make a dashboard "Default HomePage" for a list of 25

Post by cdienger »

You'll need to get a list of user ids:

Code: Select all

mysql -uroot -pnagiosxi -Dnagiosxi
and then:

Code: Select all

select * from xi_users;
For each user you want to modify you would then run:

Code: Select all

insert into xi_usermeta (user_id,keyname,keyvalue,autoload) values (6,'homepagemod_component_options_configured',1,0);
and then something like:

Code: Select all

insert into xi_usermeta (user_id,keyname,keyvalue,autoload) values (6,'homepagemod_component_options','a:4:{s:19:"home_page_title_sel";s:7:"default";s:15:"home_page_title";s:0:"";s:16:"destination_type";s:13:"homedashboard";s:15:"destination_url";s:0:"";}',0);
In my examples I used user_id '6' which was a test user returned from the first sql statement. It sets their homepage to 'homepagedashboard'. You should look at the settings of a current user that has the desired dashboard set to make sure you get the right info.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked