Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Template changes get lost after netxmsd restart

Template changes get lost after netxmsd restart

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 12.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    B
    blazarov
    wrote on last edited by
    #1

    Hello,
    recently i noticed that changes that we make on the templates get somehow lost after netxmsd restart.
    This is extremely annoying, mostly because of the wasted time in fine tuning stuff.  😠

    Anyone faced that?
    Any ideas on how to approach troubleshooting it?

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B
        B
        blazarov
        wrote on last edited by
        #3

        Hi,
        yes i noticed it initially on the standard templates - Operating System -> General UNIX and Linux
        but before submitting the thread i tried it on one custom template that we created and it did the same thing.

        I will try your suggestion and revert.
        Thanks!

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • B
            B
            blazarov
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • B
              B
              blazarov
              wrote on last edited by
              #6

              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!

              1 Reply Last reply
              0

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups