Page 2 of 3
Re: Dashboard deployment for new user Nagios XI
Posted: Mon Mar 25, 2019 8:03 am
by lmiltchev
Sure. Let us know what you found out.
Re: Dashboard deployment for new user Nagios XI
Posted: Mon Apr 08, 2019 10:14 am
by hoegh
Hi
@lmiltchev,
I followed below steps:
lmiltchev wrote:You deployed the "VMS : Dashboard" to the "testuser" and expect numbers of hosts/services in the "Link" servicegroup to match, however you are looking at the "Home Dashboard" of the "testuser", NOT at the "VMS : Dashboard"...
If testuser were added as a monitoring contact to let's say 22 hosts, he/she would be able to see 22 hosts on the Home Dashboard under "Host Status Summary". However, under the "VMS : Dashboard", testuser should see less number of hosts (as the results are filtered based on the servicegroup objects).
Is "testuser" added as a monitoring contact to ALL 13 hosts that show up under the "Link" servicegroup? What are the numbers on the "VMS : Dashboard" page?
Yes "testuser" added as a monitoring contact to ALL 13 hosts that show up under the "Link" servicegroup. Also 13 is the numbers on the "VMS : Dashboard" page.
cdienger wrote:Login as the user and go to Dashboards > My Dashboards, right click the VMS: Dashboard link, and select Copy Link address. This should copy a link like: http://nagiosxi_ip/nagiosxi/dashboards/dashboard.php?id=DFJUN2. Then click the username link in top right corner and go to My Account > Home Page Options, and select Custom URL for the "Home Page Destination" and enter the path of the URL for the "Custom URL" - /nagiosxi/dashboards/dashboard.php?id=DFJUN2. Update settings and that should do it.
Added Custom URL for home page.
This way it's working for me. But with Screen representation i'm not satisfied, because
user is able to remove the dashlets added by Nagios Admin but not able to add them back as user have only Read Access.
Re: Dashboard deployment for new user Nagios XI
Posted: Mon Apr 08, 2019 10:30 am
by lmiltchev
Yes "testuser" added as a monitoring contact to ALL 13 hosts that show up under the "Link" servicegroup. Also 13 is the numbers on the "VMS : Dashboard" page.
If the testuser is added to 13 hosts, and can see all 13 hosts under the "VMS : Dashboard" page, then what is the issue that you are having? Isn't that what the user is supposed to see?
Re: Dashboard deployment for new user Nagios XI
Posted: Tue Apr 09, 2019 2:19 am
by hoegh
lmiltchev wrote:then what is the issue that you are having? Isn't that what the user is supposed to see?
User is able to delete dashlets from dashboard, Well its very obvious for any user to manage their dahsboard, But i'm expecting way through which i can prevent user to edit dashlets from dashboard.
Please see snapshot
VMS_Dasboard.png
Re: Dashboard deployment for new user Nagios XI
Posted: Tue Apr 09, 2019 9:29 am
by lmiltchev
Even though, the delete button is present, the user should be able to delete the dashlet as you selected the "sync" check-box.
example01.PNG
Try logging in as your read-only user. Delete one of the dashlets by clicking on the delete button. Now, refresh the page. The dashlet will be back, e.g. it never actually got deleted.
Re: Dashboard deployment for new user Nagios XI
Posted: Tue Apr 16, 2019 6:55 am
by hoegh
lmiltchev wrote:Try logging in as your read-only user. Delete one of the dashlets by clicking on the delete button. Now, refresh the page. The dashlet will be back, e.g. it never actually got deleted.
That's perfect, it worked.
Re: Dashboard deployment for new user Nagios XI
Posted: Tue Apr 16, 2019 7:14 am
by hoegh
But i wonder why steps mentioned in attached doc not worked this time for me?
Because first time Nagios Dashboard I created using these steps only & that worked well for me.
Dashboard Creation Steps.pdf
Re: Dashboard deployment for new user Nagios XI
Posted: Tue Apr 16, 2019 8:21 am
by lmiltchev
It didn't work for you because you were looking at the user's Home dashboard, and the numbers didn't match. Instead, you should've been looking at the dashboard that you deployed to the "testuser" user (VMS: Dashboard).
Re: Dashboard deployment for new user Nagios XI
Posted: Wed Apr 17, 2019 7:37 am
by hoegh
So how i can manage Users Home Dashboard, from where i can edit config of Users Home Dashboard.?
Re: Dashboard deployment for new user Nagios XI
Posted: Wed Apr 17, 2019 10:18 am
by lmiltchev
In Nagios XI, there is no way to deploy a dashboard to a user, and set it as his/her "Home" dashboard (as in Fusion). This is on our TODO list, but it may take a while, until it's implemented.
You could do the following (as a "workaround"):
1. Log in as nagiosadmin, set up a dashboard, and deploy it to your user with "Keep Synced" check-box selected, so that the user wouldn't be able to modify it.
2. Log in (masquerade in) as your user. Go to dashboards, right click on the link to the dashboard you just deployed, and copy the link location. Paste it somewhere - you will need it in the next step.
3. Click on the username in the upper right corner, then click on "Home Page Options". Select "Custom URL" from the "Home Page Destination" drop-down menu, copy and paste the URL you obtained in step 2 in the "Custom URL" field. Click on Update Settings.
Result:
When user goes to the Home page, he/she would see the dashboard that you deployed earlier. The user won't be able to modify the dashboard as it was "synced". Any dashlets that have been removed by the user would re-populate on page reload.
Limitations:
Since in Nagios XI, users can modify/set their Home page, the user could simply modify the "Home Page Destination" back to his/her Home page (or a different dashboard for that matter). So, you would need to instruct your users NOT to change their Home page if you want them to permanently user the deployed dashboard as a Home page.