Page 1 of 2

Custom Dashboards not visible

Posted: Mon Aug 05, 2013 10:06 am
by tgfde
Hello,

Previously I opened a ticket in regards to this dashboard issue, I though I had it working but unfortunately I'm still not seeing the dashboard I created with the read-only account I created.

Below is the solution I'm following provided by Scott wilkerson. However when I try to access the custom dashboards, it shows me the default dashboard (Getting Started Guide) not the dashboards I created.

2. Would be to create a read-only user account, then you can get the ticket from the Backend API URL and you can tack those on to most URL's in XI to auto-login
for example:
/nagiosxi/includes/components/xicore/status.php?show=services&hoststatustypes=2&servicestatustypes=28&serviceattr=10&username=nagiosadmin&ticket=q6jjimi4

On a side note, is there a way to open a locked ticket so that I don't open another one?

Thanks.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 10:16 am
by abrist
tgfde wrote:On a side note, is there a way to open a locked ticket so that I don't open another one?
If you still have an email from the ticket email exchange, reply to that to reopen the ticket.
tgfde wrote:/nagiosxi/includes/components/xicore/status.php?show=services&hoststatustypes=2&servicestatustypes=28&serviceattr=10&username=nagiosadmin&ticket=q6jjimi4
This url would log you in as the user "nagiosadmin", who by definition cannot be a "read only" user.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 10:53 am
by tgfde
Sorry I didn't realize that I put the admin account in the URl....here's what I have for the read-only account.

/nagiosxi/dashboards/&username=readaccess&ticket=akefqfk7r37keaoaoivgmeca944cibprt68nkrsdu3vabnh07ffqsq53r8cdh66e

Thanks.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 11:02 am
by abrist
You need to get the full url for the dashboard:
1. Right click the specific dashboard link and copy the link location.
2. Append the link with an "&" and then your ticket information.

For example (bold is dashboard id and underline is ticket information):

https://<server ip>/nagiosxi/dashboards/dashboard.php?id=xxxxxxxx&username=nagiosadmin&ticket=xxxxxxxx

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 1:16 pm
by tgfde
Below is the link I'm hitting:

https://<nagiosserver>/nagiosxi/dashboards/dashboard.php?id=kcu4ffs0&username=readaccess&ticket=akefqfk7r37keaoaoivgmeca944cibprt68nkrsdu3vabnh07ffqsq53r8cdh66e

Result below:

Bad Dashboard

Unfortunately for you, that dashboard is not valid... Too bad. Dashboard ID: kcu4ffs0

Thanks.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 1:30 pm
by abrist
When logged in as the readaccess user, can you browse to that dashboard?

Code: Select all

https://<nagiosserver>/nagiosxi/dashboards/dashboard.php?id=kcu4ffs0
Remember to change <nagiosserver> and https to http if you do not use ssl.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 2:17 pm
by tgfde
Yes, I can browse to the dashboards when logged on as the readaccess user.

Thanks.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 2:44 pm
by scottwilkerson
Once question, has this readonly user actually logged in and accepted the TOS yet, or have you just masqueraded as them?

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 2:52 pm
by tgfde
Yes, this user has logged into our instance of nagiosxi.

Thanks.

Re: Custom Dashboards not visible

Posted: Mon Aug 05, 2013 3:01 pm
by lmiltchev
One more thing... The nagiosadmin's ID and the read-only user's ID would be different. Are you logged in as "nagiosadmin" while testing the: "https://<nagiosserver>/nagiosxi/dashboards/dashboard.php?id=kcu4ffs0&username=readaccess&ticket=akefqfk7r37keaoaoivgmeca944cibprt68nkrsdu3vabnh07ffqsq53r8cdh66e" URL? You will have to log out, and then try it.