Page 1 of 1

Referencing dashboard.php by name

Posted: Wed Jan 09, 2019 1:47 pm
by jwgill
I've been asked to embed a NagiosXI Dashboard in a NagVis map. (see url snippit below)

Code: Select all

/nagiosxi/dashboards/dashboard.php?id=8PX0cO
That is easy, using the dashboard ID, and works for one user. When the dashboard is published to other users, the dashboard ID changes. This breaks the url and NagVis map.

Is there a way to reference the friendly dashboard name? or Is there a way to sync the dashboard ID's?

Re: Referencing dashboard.php by name

Posted: Wed Jan 09, 2019 2:57 pm
by jwgill

Re: Referencing dashboard.php by name

Posted: Wed Jan 09, 2019 5:21 pm
by npolovenko
@jwgill , This solution should work:
https://support.nagios.com/forum/viewto ... 65#p250806
Can you post the whole dashboard URL+the backend ticket so that I could verify the syntax?

Please open a new incognito window in the web browser, paste the dashboard url(with the backend ticket) and let me know if it's displaying correctly.

By the way, the backend component was moved to a different place. You need to enable it in the Admin manu -> System settings -> Backward Compatibility tab, and then find the actual token by clicking on the username in the top right corner of the screen(scroll down to the Insecure Login Settings section).

Re: Referencing dashboard.php by name

Posted: Wed Feb 27, 2019 5:13 pm
by jwgill
@npolovenko I appoligize for the delay, was pulled to a different project...
back to this one.

Here is my url,
https://HOST/nagiosxi/dashboards/dashbo ... I7lW8A4Olh

I'm doing some thing wrong, as the user is redirected to the login page.

Re: Referencing dashboard.php by name

Posted: Thu Feb 28, 2019 1:37 pm
by jwgill
Ok, I created a new user for this purpose and it works.

However.

It's not working in this scenario:

User "nagvis" has a dashboard and using the dashboard ticket, it is possible for non-logged in users to open the dashboard as a standalone item.

User "Tom" logs onto nagios to handle various operational tasks. Tom then, while still logged in, access the nagvis+ticket url. On screen it is reported that the dashboard doesn't exist.

My end goal is this: I've been tasked to build nagvis screens to look an interrelated group of hosts and services. This screen must also include the dashlets with host, service and alert statuses. I'm right now using a inline reference to the user dashboard for the screen, however this only works for the user who's dashboard id matches the expected id. If I could reference by a common code or name, problem solved. I'd just publish the dashboards for embedding to all the users, but it breaks on all users except the one with the matching id.

Re: Referencing dashboard.php by name

Posted: Thu Feb 28, 2019 5:56 pm
by scottwilkerson
Dashboard ID's are unique per user.

You can deploy the dashboard to multiple users however
https://library.nagios.com/library/prod ... nagios-xi/

Re: Referencing dashboard.php by name

Posted: Thu Feb 28, 2019 5:58 pm
by ssax
I see what you're trying to do, unfortunately that functionality doesn't exist, the developers would need to add that functionality. Would you like me to submit a feature request for this?

Re: Referencing dashboard.php by name

Posted: Mon Mar 04, 2019 10:15 am
by jwgill
Please submit this feature request.

Thank you.

Re: Referencing dashboard.php by name

Posted: Wed Mar 06, 2019 4:52 pm
by ssax
I've submitted the feature request on your behalf.
FR: XI - Add the ability to link to dashboards by name (can already link by ID) but the name would be the same across users for sending links to other people.
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.