Referencing dashboard.php by name

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jwgill
Posts: 14
Joined: Mon Jun 12, 2017 3:09 pm

Referencing dashboard.php by name

Post 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?
jwgill
Posts: 14
Joined: Mon Jun 12, 2017 3:09 pm

Re: Referencing dashboard.php by name

Post by jwgill »

npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Referencing dashboard.php by name

Post 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).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jwgill
Posts: 14
Joined: Mon Jun 12, 2017 3:09 pm

Re: Referencing dashboard.php by name

Post 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.
jwgill
Posts: 14
Joined: Mon Jun 12, 2017 3:09 pm

Re: Referencing dashboard.php by name

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Referencing dashboard.php by name

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Referencing dashboard.php by name

Post 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?
jwgill
Posts: 14
Joined: Mon Jun 12, 2017 3:09 pm

Re: Referencing dashboard.php by name

Post by jwgill »

Please submit this feature request.

Thank you.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Referencing dashboard.php by name

Post 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.
Locked