NetXMS Support Forum

English Support => General Support => Topic started by: Kriptoker on February 04, 2022, 08:06:20 PM

Title: Dashboard via URL
Post by: Kriptoker on February 04, 2022, 08:06:20 PM
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 :)
Title: Re: Dashboard via URL
Post by: Filipp Sudanov on February 09, 2022, 01:05:57 AM
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.
Title: Re: Dashboard via URL
Post by: Kriptoker on February 10, 2022, 08:53:37 PM
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.
Title: Re: Dashboard via URL
Post by: Kriptoker on February 10, 2022, 11:29:39 PM
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.
Title: Re: Dashboard via URL
Post by: Victor Kirhenshtein on February 11, 2022, 05:31:29 PM
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
Title: Re: Dashboard via URL
Post by: Kriptoker on February 11, 2022, 07:13:45 PM
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.
Title: Re: Dashboard via URL
Post by: Kriptoker on February 16, 2022, 02:02:32 AM
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.
Title: Re: Dashboard via URL
Post by: Kriptoker on February 17, 2022, 02:11:06 AM
Looks like I may have spoke too soon. As of today, the dashboard has stopped auto refreshing again.
Title: Re: Dashboard via URL
Post by: Filipp Sudanov on March 02, 2022, 05:49:01 PM
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?
Title: Re: Dashboard via URL
Post by: Kriptoker on March 03, 2022, 09:51:00 PM
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:

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