Environment variables in nxagentd.conf on windows?
-
-
No, it's not possible. I'll add it as change request though.
Best regards,
Victor -
-
-
Seems that it was forgotten. I've scheduled it for 1.2.17 release.
Best regards,
Victor -
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. -
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 -
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