Page 1 of 1

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

Posted: Wed May 08, 2019 3:43 am
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.

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

Posted: Wed May 08, 2019 5:01 pm
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.

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

Posted: Wed May 08, 2019 7:44 pm
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.

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

Posted: Thu May 09, 2019 3:13 pm
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

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

Posted: Thu May 09, 2019 7:12 pm
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.

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

Posted: Fri May 10, 2019 3:35 pm
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.