About the agent lower layers handler function use distinguish between "Windows"
-
In agent's spurce code : When you use the "nxget" tool to get agent's parameters, The agent finally call the "getParameter()" function.and finally it call " m_pParamList[i].handler(pszParam, m_pParamList[i].arg, pszValue) " .
my question is : It do that workflow in both Windows and Linux platform. But it must have a "switch" to distinguish the OS platform,because the handler function(such as: H_DiskInfo H_ProcessCount ) in different OS platform is different. Can you tell me where is the "switch" I can find it in src. -
Hi!
Agent is modular, and platform-specific parameters are provided by subagents. When agent starts, it automatically loads so-called "platform subagent", which provides these parameters. For example, on Windows agent will load "winnt.nsm", and on Linux it will load "libnsm_linux.so". After subagent loading, parameters provided it added to m_ParamList in core agent. You may take a look inside subagent.cpp if you are interested how subagents are loaded.
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