1.1.7 Release - sub agnets

Started by lindeamon, January 07, 2012, 11:28:37 AM

Previous topic - Next topic

lindeamon

hi victor,

one of the changes u made on the last release is "Added possibility to run different subagents under different user accounts", how do i do that ?

Best Regards,
Lindeamon

Victor Kirhenshtein

Hi!

To run subagent under different user account, you have to do the following (I will use WMI subagent as an example):

1. Add ExternalSubagent option to nxagentd.conf:

ExternalSubagent = name:user

in my case it would be

ExternalSubagent = WMI:*

First part defines connection point name, and second part defines allowed user account. You can use asterisk or omit second part at all to allow access from any user account.

2. Run agent
3. Create second configuration file for external subagent (For this example I will take C:\NetXMS\etc\wmi.conf):

ExternalMasterAgent = WMI
SubAgent = wmi.nsm

First option switches agent to external subagent mode. You should specify connection point name defined in first step as a value of ExternalMasterAgent. Otherwise it's a normal agent's config - you can load subagents with SubAgent options, define sections for subagent configuration as necessary, etc.

4. Run external subagent under different account:

nxagentd.exe -c C:\NetXMS\etc\wmi.conf

Now you should have two nxagentd processes running, with WMI parameters available via master agent.

You can also create another Windows service:

nxagentd.exe -I -c C:\NetXMS\etc\wmi.conf -n nxagentd_wmi -N "NetXMS Agent - WMI"

Hope this helps!

Best regards,
Victor

lindeamon

thank you victor,i will take a look at later

Best Regards,
Lindeamon