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. Environment variables in nxagentd.conf on windows?

Environment variables in nxagentd.conf on windows?

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 35.8k 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.
  • Dani@M3TU
    Dani@M3TU
    Dani@M3T
    wrote on last edited by
    #1

    Is there a possibility to use windows environment variables in nxagentd.conf on windows nodes? So we could use one config-file for all windows nodes (32bit oder 64bit, English or different language). Especially %ProgramFiles% would be usefull.

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

      No, it's not possible. I'll add it as change request though.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • Dani@M3TU
        Dani@M3TU
        Dani@M3T
        wrote on last edited by
        #3

        thanks for clarification and putting it on the list.

        1 Reply Last reply
        0
        • Dani@M3TU
          Dani@M3TU
          Dani@M3T
          wrote on last edited by
          #4

          any news in this case?

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

            Seems that it was forgotten. I've scheduled it for 1.2.17 release.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • Dani@M3TU
              Dani@M3TU
              Dani@M3T
              wrote on last edited by
              #6

              After update to NetXMS V1.2.17 I tested the new feature to use environment variables in agent config for windows agents.
              So I replaced in Agent Config Manager "C:\Program Files" thrue "%ProgramFiles%". Than I restarted the agent on a Win2012R2 node. The local 'nxagnetd.conf'-File was updated and contains now "%ProgramFiles%". But the agent doesn't start after that.

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

                Hi,

                you should use ${} (UNIX-like) for environment variable expansion in configs. I've choose that form because you may need to pass % sign to underlying layer (for example, it is often used in names of performance counters), and then you'll have to escape all % that are already there in configs. So, ${ProgramFiles} should work.

                Best regards,
                Victor

                1 Reply Last reply
                0
                • Dani@M3TU
                  Dani@M3TU
                  Dani@M3T
                  wrote on last edited by
                  #8

                  Thanks Victor. I can confirm it's working like this. So I only need one AgentConfig for all kind of Windows agents! (language, 32bit, 64bit)

                  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