I solved problem #1 by cahnging the startup path of the service.
The service NetXMSAgentdW32 will start the follow.
"C:\NetXMS\bin\nxagentd.exe" -d -c "C:\NetXMS\etc\nxagentd.conf" -n "NetXMSAgentdW32" -e "NetXMS Win32 Agent" -D -1 -M "192.168.0.41"
The Debug level is set to -D -1. this has to be -D 1.
Edit the service to start this
"C:\NetXMS\bin\nxagentd.exe" -d -c "C:\NetXMS\etc\nxagentd.conf" -n "NetXMSAgentdW32" -e "NetXMS Win32 Agent" -D 1 -M "192.168.0.41"
Run regedt32.exe then navigate to the key for the service found in;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
and edit the Reg_Expand_Sz string named 'ImagePath'
			The service NetXMSAgentdW32 will start the follow.
"C:\NetXMS\bin\nxagentd.exe" -d -c "C:\NetXMS\etc\nxagentd.conf" -n "NetXMSAgentdW32" -e "NetXMS Win32 Agent" -D -1 -M "192.168.0.41"
The Debug level is set to -D -1. this has to be -D 1.
Edit the service to start this
"C:\NetXMS\bin\nxagentd.exe" -d -c "C:\NetXMS\etc\nxagentd.conf" -n "NetXMSAgentdW32" -e "NetXMS Win32 Agent" -D 1 -M "192.168.0.41"
Run regedt32.exe then navigate to the key for the service found in;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
and edit the Reg_Expand_Sz string named 'ImagePath'