Page 1 of 2

Problems viewing Dashboards.

Posted: Thu Aug 30, 2018 7:10 am
by nagiosEngie
Hello Nagios Crew,
I am having some problems with dashboards.
I create a dashboard in nagiosxi,
I distribute it to a user.
I Click on the permalink button and copy to clipboard.
I then paste the link in a tool that will cycle through the dashboards (yes I know I can do it with views but the customer is asking to use their tool).
When the tool starts cycling every nagios dashboard appears as a blank page.
The tool that cycles the pages inserts the link in a iframe.

Can you help?

Thanks
Sandro

Re: Problems viewing Dashboards.

Posted: Thu Aug 30, 2018 8:42 am
by scottwilkerson
The id in the permalink will be different for the user, you will have to login/masquerade as the user to get the correct permalinks.

Re: Problems viewing Dashboards.

Posted: Fri Aug 31, 2018 8:50 am
by nagiosEngie
Hello Scott,
Ok now it is working. Is there a way to authenticate without going through filling the login form.
I having problems in understanding where to get the ticket.

Thanks
Sandro

Re: Problems viewing Dashboards.

Posted: Fri Aug 31, 2018 8:57 am
by scottwilkerson
nagiosEngie wrote:Hello Scott,
Ok now it is working. Is there a way to authenticate without going through filling the login form.
I having problems in understanding where to get the ticket.

Thanks
Sandro
If you enable "Allow insecure logins" under Admin -> System Settings -> Backwards compatibility mode
You can then go to the user profile by clicking the users username upper right, and check "Enable Insecure Login"

Re: Problems viewing Dashboards.

Posted: Mon Sep 03, 2018 4:08 am
by nagiosEngie
Hello Scott,
hope your weekend was good.
So I tried the solution you suggested, but it is still asking for authentication so I was wondering if my URL sintax was right:

http://<NAGIOSSERVER-IP>/nagiosxi/dashboards/dashboard.php?id=home&username=<USERXXX>&ticket=xxxxxxxBLAxBLAxxxxxxxxxxxxx

I took the ticket number that appeared, once I set the "Allow insecure logins", and went to the users profile.

Thanks
Sandro

Re: Problems viewing Dashboards.

Posted: Tue Sep 04, 2018 10:39 am
by scottwilkerson
That is correct, did you ckeck the "Enable Insecure Login:" on the user "Account Information" page?

I just tested this on my 5.3.3 server and it works as expected, for example

Code: Select all

http://192.168.5.182/nagiosxi/dashboards/dashboard.php?id=home&username=nagiosadmin&ticket=426d184e674e6c3020d38bde1d7ed35d

Re: Problems viewing Dashboards.

Posted: Wed Sep 05, 2018 2:48 am
by nagiosEngie
Hello Scott,
i tried this and my link includes a dashboard in the url like this:

http://<IP>/nagiosxi/dashboards/dashboard.php?id=Xzzzz&username=userxxx&ticket=xxxxxxBLAxxxxxBLAxxx

And it presents always the login page and the link dose a redirect:

http://<IP>/nagiosxi/login.php?redirect=/nagiosxi/dashboards/dashboard.php%3fid%3DXeCvqh%26username%3Duserxxx%26ticket%3DxxxxxxBLAxxxxxBLAxxx&noauth=1

Yes I have enabled the Enable Insecure Login:" on the user "Account Information"
And also enabled it in Admin ( Backwards compatibility mode) as you suggested.

Sandro

Re: Problems viewing Dashboards.

Posted: Wed Sep 05, 2018 7:44 am
by scottwilkerson
What version of XI are you running?

Re: Problems viewing Dashboards.

Posted: Fri Sep 07, 2018 2:18 am
by nagiosEngie
Hi,
we are using version 5.5.2.

Sandro

Re: Problems viewing Dashboards.

Posted: Fri Sep 07, 2018 7:13 am
by scottwilkerson
Can you upgrade to 5.5.3? I have tested it on a 5.5.3 system and know it is functioning.

Also, just to verify, you are using the Insecure Login Ticket and not the API key from the user "Account Information" page right?

Have you tried re-creating the backend ticket?