Template changes get lost after netxmsd restart
-
-
Hi,
if those were standard templates then likely they were re-imported on startup. If this is the case set server configuration variable ImportConfigurationOnStartup to false. In 2.2.14 we changed that logic to only import missing templates and events by default.
Best regards,
Victor -
-
Custom templates should not be affected by that setting. If they do it likely means that template is not saved to database. Check that you do not have any SQL errors in server log and if database table "items" contains changes for your custom template.
Best regards,
Victor -
Tested setting ImportConfigurationOnStartup to false. Fixed the problem with the default templates in the operating systems, but the problem with my custom template remains the same. It gets overwritten after server restart.
will try to see if it gets written to the database. -
i have done some testing observing directly the DB and i think i got it.
Depending on server load i get anything between 1 and 5 minutes for the change in the template to get populated in the DB. I believe this is normal due to the DB writer queue which is usually at around 4k.My initial test was quite quickly changing the template and immediately stopping the server. Most probably i didnt allow it enough time to get flushed from the DB queue and populated to the DB.
I think i am sorted now. Thanks again!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login