NetXMS default templates

Started by maliodpalube, September 11, 2025, 04:17:04 PM

Previous topic - Next topic

maliodpalube

Hello,

I was wondering If there are bulit in templates with Automatic Apply Rules already setup. For example for Synology QNAP, Lenovo XCC.

Since we have existing/old NetXMS server installation and some built in templates no longer function is there a repository of new  default/builtin templates that come with new NetXMS server installation?

Filipp Sudanov

You can find all out-of-the-box templates here: https://github.com/netxms/netxms/tree/master/contrib/templates

Note, that if you want to import them into NetXMS that is older then 5.x, you need to switch to stable-4.6 branch as there are differences in the scripting language.

maliodpalube

#2
Ok, thx, but when trying to import xml template nothing happens it just stands like this indefinitely, can't click on ok, only browse or cancel buttons work. What am I missing?

Alex Kirhenshtein

Quote from: maliodpalube on September 12, 2025, 11:14:39 AMOk, thx, but when trying to import xml template nothing happens it just stands like this indefinitely, can click on ok, only browse or cancel

which version is it?


Filipp Sudanov

The progress bar above the buttons in this dialog should get filled with blue when the file got uploaded, then OK button would become active. This means that you have some issue with browser not uploading the file. Check security settings, may be try another browser or you can try the Desktop Client.

maliodpalube

Is it possible to import them to separate template folder? What happens if i dont select "Replace templates" option?

Filipp Sudanov

The thing that I forgot to mention - in Configuration->Server configuration there's parameter named Server.ImportConfigurationOnStartup. Setting it to Always and restarting the server will revert built-in templates to their current versions (they are stored in /usr/share/netxms/templates/ on the server).

Setting "Only missing" has same meaning as not selecting "Replace templates" in the manual import - if given template (they are identified by GUIDs) is already present in the system, no changes will be made to it.
So if you have "Only missing" setting, delete a template and restart NetXMS - template will reappear (but all historical data on nodes will be gone).

maliodpalube

Ok I have some  questions what is the recommended way to manually import templates, which of these options do need to be turned on? Secondly can We have "duplicates" aka can we import new templates to a New folder to have them be separate from originals already on server.

What happens if I dont select any of these options, what happens to existing templated do they get owerwriten? Same question if i select any of the "Replace options"


Filipp Sudanov

I'd suggest to experiment a bit - you can make a new template with just one DCI and see what happens when you export or import that.

For duplicates - it's controlled by GUID of each template that is included in the .xml file. So if you import it back, it will replace the original template, even if the name is different. But if you change the GUIDs in the .xml, it will import as a new one.

Only "Replace templates" option is relevant if your .xml contains only templates. If it's not checked, then if template already exists, no changes will be done to it.