Access the dashboard without password

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Access the dashboard without password

Post 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.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Access the dashboard without password

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Access the dashboard without password

Post 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
You do not have the required permissions to view the files attached to this post.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Access the dashboard without password

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Access the dashboard without password

Post 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.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Access the dashboard without password

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Access the dashboard without password

Post 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
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Access the dashboard without password

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Access the dashboard without password

Post by sgoffar »

Yes, able to see the dashboard in dashboards menu from the second user's account
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Access the dashboard without password

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked