Page 1 of 2

Access the dashboard without password

Posted: Thu Nov 02, 2017 8:43 am
by sgoffar
Hi Team,

Can you please help us how to access the dashboard directly without authenticated through login page.

We are using Nagios xi 5.4.8.

Re: Access the dashboard without password

Posted: Thu Nov 02, 2017 10:26 am
by npolovenko
Hello, @sgoffar.

1. In XI web interface go to Admin/Manage Components. Find a Backend API component, click on the settings wrench icon.
You will see data types and external urls. Copy one of the urls.

Code: Select all

http://192.168.4.172/nagiosxi/backend/?cmd=gethoststatus&username=nagiosadmin&ticket=NWV60eth
2. Go to Dashboard menu in xi. In the left column under my dashboards right click on the dashboard of your choice and select copy link address. It will be something like this:

Code: Select all

http://192.168.4.172/nagiosxi/dashboards/dashboard.php?id=home
3. Let's modify link 1 to display the dashboard:

Code: Select all

http://192.168.4.172/nagiosxi/dashboards/dashboard.php?id=home&username=nagiosadmin&ticket=NWV60eth
As you can see I took the dashboard path from step two and added authentication part from step 1.

All set.

Re: Access the dashboard without password

Posted: Thu Nov 02, 2017 11:07 am
by sgoffar
Thanks for your reply. I already using the one that you mentioned. But still going to login page some time.

http://172.26.13.153/nagiosxi/dashboard ... gvJrrKkhor

Re: Access the dashboard without password

Posted: Thu Nov 02, 2017 11:23 am
by npolovenko
@sgoffar, Please go to Admin/System Config - System Settings in the left column/ , click on the security tab and check the box that says Disable - Do not restrict pages from being opened in iframes from anywhere. (Will not apply X-Frame-Options or Content-Security-Policy: frame-ancestors headers). Click on update settings.
Did that fix it?

Re: Access the dashboard without password

Posted: Fri Nov 03, 2017 8:42 am
by sgoffar
Thanks for your reply

I got the issue..

Actually we have created the dashboard using admin id. So when we are trying to access it for different id. We can see the id is changing for the dashboard and getting the error .

Dashboard Not Valid

The dashboard being requested is no longer valid or may have been removed.

Dashboard ID: BBEUdGC8

Actually my intension is to set a dashboard for different user and users can see the dashboard without password only clicking the URL. Then what will be the best way.

Re: Access the dashboard without password

Posted: Fri Nov 03, 2017 9:51 am
by npolovenko
Hello, @sgoffar.
Actually we have created the dashboard using admin id. So when we are trying to access it for different id. We can see the id is changing for the dashboard and getting the error.
Do you mean the dashboard was created by the admin user? Then the username and ticket from step 1 in my previous post have to be generated from the admin user. You need to sign in as nagiosadmin to get the right credentials.
Or you could deploy the dashboard to non-admin user and use that user's credentials instead.
Did that answer your question?

Re: Access the dashboard without password

Posted: Fri Nov 03, 2017 10:21 am
by sgoffar
Yes dashboard was created by an admin account and deployed to other read-only as well as admin account.

Then I am trying to access it for different user like


http://<servername>/nagiosxi/dashboards/dashboard.php?id=<id of admin>&username=<accountname>&ticket=<accountname key>

but still it's showing the error

Dashboard Not Valid

The dashboard being requested is no longer valid or may have been removed.

Dashboard ID: BBEUdGC8

Re: Access the dashboard without password

Posted: Fri Nov 03, 2017 11:08 am
by npolovenko
@sgoffar, Are you able to see the dashboard in dashboards menu from the second user's account? Is there an opportunity to test the link using the original administrator credentials?

Re: Access the dashboard without password

Posted: Wed Nov 08, 2017 9:01 am
by sgoffar
Yes, able to see the dashboard in dashboards menu from the second user's account

Re: Access the dashboard without password

Posted: Wed Nov 08, 2017 10:52 am
by npolovenko
Hello, @sgoffar.
Yes dashboard was created by an admin account and deployed to other read-only as well as admin account.

Then I am trying to access it for different user like


http://<servername>/nagiosxi/dashboards/dashboard.php?id=<id of admin>&username=<accountname>&ticket=<accountname key>

but still it's showing the error

Dashboard Not Valid
The ID of the dashboard has to correspond to the user's account name/ticket. If you're going to be using the second users' account name and ticket, then the dashboard id also needs to be copied from the second user's dashboards page.
I already using the one that you mentioned. But still going to login page some time.
This shouldn't happen if you disable restrictions on pages from being opened in iframes from anywhere(see my previous post).

If you still experience the same problem I'd recommend updating Nagios XI to the latest version(if possible).
Can you also upload a screenshot of the security settings for the 2d user? (Admin/Manage Users/Edit User/Security settings column.