NetXMS Support Forum

English Support => General Support => Topic started by: stoffmann on May 14, 2025, 09:11:58 AM

Title: How to use "External Resources" or "Custom Attributes"
Post by: stoffmann on May 14, 2025, 09:11:58 AM
Hi,

what is the "External resources" or "Custom Attributes", in the Node properties meant for?
My idea was that I e.g. enter the managament URL from our Azure VMs there and then have a way to
open that URL by adding it to the Tools menu to open that URL. Is that possible?

It should open a webbrowser pointing to the URL configured in eather "External Resources" or "Custom Attributs". Whatever is easier.

Best regards

Stefan
Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: Filipp Sudanov on May 15, 2025, 02:14:24 PM
Hi,

External resources are meant to store URLs. They are visible in the Overview tab of a node.

Custom attributes are for storing any custom information you need. They have inheritance, so you can specify a custom attribute on container and it will be on node under that container. A few use cases:
- If you have a template that needs to be applied only to specific nodes - it's autobind script can check for a custom attribute.
- Check File system: free space on {instance} DCI from Operating Systems->Windows template. Note how threshold value is configured.
- You can add text from custom attributes to your event messages or notification text by using %{custom_attribute_name} macro.

You can have object tool that uses URL from a custom attribute, just use %{custom_attribute_name} in that tool.
Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: stoffmann on May 15, 2025, 02:32:27 PM
Perfect! That sounds exactly like what I need.
Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: stoffmann on May 15, 2025, 03:27:40 PM
I think I must doing something wrong using the custom attributes for tools.
What I did:

1. Create a custom attribute
Name: AzureVM
Value: https://portal.azure.com/#home

2. Create a new menu entry in Object Tools
Type: URL
Name: Open Azure
URL: %{AzureVM}

Selecting this in the tools menu on the node I set the custom attribute results in opening File Explorer.

Any thoughts?

Best regards

Stefan
Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: Filipp Sudanov on May 15, 2025, 05:06:43 PM
Are you using desktop client? Legacy or new one? What exactly version of the client? What is the OS?
Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: stoffmann on May 16, 2025, 09:19:48 AM
I use the new desktop client and the WebUI.
AS is Windows 11 when using WebUI or Windows Server 2022 when using Desktop Client.
Both NetXMS Clients are version 5.2.1.

Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: Filipp Sudanov on May 16, 2025, 05:41:27 PM
Make sure that you start your url with http:// or https://
Windows is analyzing the URL and decides somehow which app should be used for opening. URL like file:///C:/ does indeed open in File Explorer
Title: Re: How to use "External Resources" or "Custom Attributes"
Post by: stoffmann on May 23, 2025, 11:14:03 AM
Hi,

I have the HTTPS:// in the custom attribute.
See attached screenshots.