Dashboard via URL

Started by Kriptoker, February 04, 2022, 08:06:20 PM

Previous topic - Next topic

Kriptoker

Hello,

I have found some documentation, and links that refer to loading directly into a dahsboard via a preconfigured URL. What I have been having issues with, is correctly configuring a 'Guest' read-only type user account to accomplish this.

Is there a way to create a user that ONLY can load the Dashboard configured in the URL and not access anything else in the system/management interface? I want to be able to give out the URL with essentially a 'Guest' account that only lets whoever has the URL, load just the Dashboard I want them to see and that is it. I do not want them to be able to interact with it or anything, just essentially 'see' the dashboard.

If this is possible, would anyone be able to provide the appropriate user permissions that the account would need?

Thank you :)

Filipp Sudanov

Permissions are configured in the object tree. Then are inheritable, so if something is configured on parent level, this goes down to children objects.

For dashboards two things are needed. First, there should be read access to the dashboard itself. Second - read access to all nodes that are used on the dashboard.
You can just give read access to these nodes in properties of these nodes. Or you can make a container under "Infrastructure services", put all needed nodes there and give read access to that container - that will be inherited down to nodes. Since you are not giving any access right to "Infrastructure services" container, that user won't see any nodes, he/she would only see Dashboards.

Kriptoker

#2
Awesome, thank you for the explanation. I will work on setting up a user, following your explanation.

Edit:
That worked! Thank you very much. I was missing the step to give 'read' permissions to the nodes themselves.

Kriptoker

I have a separate question, regarding the Dashboard loaded via Auto Login using the URL.

As noted here: https://wiki.netxms.org/wiki/Autologin_for_Management_Console

Is there a way to make the loaded URL auto refresh so that any changes automatically will display?

Right now I am working on a Network Status Dashboard that displays when Nodes are 'Down'. However, when loading via the Auto URL, the page does not refresh/reflect changes since its first load into the Dashboard.

Thank you.

Victor Kirhenshtein

This actually looks like a bug. Can you provide configuration of your dashboard (you can export it into XML by right click on dashboard object and selecting "Export")?

Best regards,
Victor

Kriptoker

#5
Here is the XML export of the Dashboard:

<dashboard>
<name>Company_Network_Status</name>
<columns>1</columns>
<options>0</options>
<elements>
<dashboardElement>
<type>20</type>
<layout>
   <horizontalSpan>1</horizontalSpan>
   <verticalSpan>1</verticalSpan>
   <grabVerticalSpace>true</grabVerticalSpace>
   <heightHint>-1</heightHint>
</layout>
<element>
   <objectId>3171</objectId>
   <title></title>
   <severityFilter>126</severityFilter>
   <hideObjectsInMaintenance>false</hideObjectsInMaintenance>
   <groupObjects>true</groupObjects>
   <showTextFilter>false</showTextFilter>
   <showRadial>false</showRadial>
   <fitToScreen>true</fitToScreen>
</element>
</dashboardElement>
</elements>
<objectMap>
<object id="3171" class="5">Monitor</object>
</objectMap>
<dciMap>
</dciMap>
</dashboard>


When I am logged in via the Admin Account on the Web GUI, I do not experience any issues with the Dashboard updating automatically. However, a co-worker using the Dashboard in URL does not have the Dashboard Refresh. I also have an LG TV (using the LG Web Browser) loading the same URL and it also does not auto refresh.

Edit: Just to add additional information, I am currently using v3.9.420 x64 on Windows OS.

Kriptoker

Hi Victor,

I just updated to the latest v4.0.2092 Server (4.0.2088 Web GUI), and thus far, the dashboard appears to be functioning as expected. It is automatically refreshing, and thus far has been good for the last 45 minutes.

Kriptoker

Looks like I may have spoke too soon. As of today, the dashboard has stopped auto refreshing again.

Filipp Sudanov

Hi!

Can you check nxmc log (it resides in your home folder in .nxmc/data/.metadata/.log) may be there are any errors there when dashboard stops refreshing.
Also, can you export your dashboard and attach here?

Kriptoker

Hi Filipp,

I have attached the XML that is created when exporting the Dashboard. As for the log, I am not able to find that folder on the Windows Server where the NetXMS Server Application is installed.

There are some log files in C:\NetXMS\log\ though.

I see the following in the above directory:

  • netxmsd.log
  • nxagentd.log
  • nxreportd.log
  • commons-daemon.YYYY-MM-DD.log (multiple logs)
  • nxreportd.log.YYYY-MM-DD (a few of these)

I looked in them, and did not notice any entries referring to any 'errors'.