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. Auto-Apply Template Not Working after Upgrade

Auto-Apply Template Not Working after Upgrade

Scheduled Pinned Locked Moved Support
8 Posts 5 Posters 38.6k 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.
  • S
    S
    Storm-Donovan
    wrote on last edited by
    #1

    I just noticed that my Auto-Apply scripts are non-functional.  All of them.  Did something change in v4 about the way these are run?  Here's a basic script I have on a template that we apply to all devices:

    if (classof($object) != "Node")
    	return false;
    return true;
    

    I just added 6 nodes and none of them came up with this template.

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

      Hi,

      what exact server version you are using? There was a bug in auto-apply functionality, but it should be fixed in latest patch release.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • S
        S
        Storm-Donovan
        wrote on last edited by
        #3

        This is what's installed:

        netxms-agent/bullseye,now 4.0.2157-1 amd64 [installed,automatic]
        netxms-base-dbg/bullseye,now 4.0.2157-1 amd64 [installed,automatic]
        netxms-base/bullseye,now 4.0.2157-1 amd64 [installed,automatic]
        netxms-dbdrv-mariadb-dbg/bullseye,now 4.0.2157-1 amd64 [installed]
        netxms-dbdrv-mariadb/bullseye,now 4.0.2157-1 amd64 [installed,automatic]
        netxms-dbdrv-sqlite3/bullseye,now 4.0.2157-1 amd64 [installed,automatic]
        netxms-server-dbg/bullseye,now 4.0.2157-1 amd64 [installed]
        netxms-server/bullseye,now 4.0.2157-1 amd64 [installed]

        If I apt-update, I have no new packages to be installed.

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          This looks to be the most recent version.

          What's the value of Objects.AutobindPollingInterval in Configuration -> Server configuration?

          Note that now there's poll on templates themselves, what happens if you right-click a template and select Poll -> Automatic bind?

          Try adding
          trace(0, "some text");
          to your auto-bind script. When you do automatic bind poll, does this "some text" appear in server log?

          1 Reply Last reply
          0
          • S
            S
            Storm-Donovan
            wrote on last edited by
            #5

            Hi Filip,

            I just checked the devices I added on Monday and the templates have been applied.  I was just used to the templates being applied automatically when a device was added.  The Objects.AutobindPollingInterval is 3600 (default) so likely the templates were applied within an hour of adding the devices.

            Thanks for the help!

            1 Reply Last reply
            0
            • F
              F
              Filipp Sudanov
              wrote on last edited by
              #6

              In 4.0 auto-apply was reworked so that it happens from template/container side. But the case when a new node is added was kinda forgotten. Will discuss that internally with developers.

              1 Reply Last reply
              0
              • M
                M
                mjk
                wrote on last edited by
                #7

                I had to alter the server config for trusted nodes back to 1

                It seemed to turn off.

                Doing this and server restart and they are working again!

                1 Reply Last reply
                0
                • H
                  H
                  hoeth
                  wrote on last edited by
                  #8

                  @filipp-sudanov said in Auto-Apply Template Not Working after Upgrade:

                  In 4.0 auto-apply was reworked so that it happens from template/container side. But the case when a new node is added was kinda forgotten. Will discuss that internally with developers.

                  Thanks, we would greatly appreciate this! We are adding nodes every day, and being able to see values straight away is helpful.

                  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