If, on windows, the agent is launched through an external application (i.e. a third parties launcher, a custom console or else), any UserParameter configured returns an error 0x00000005 (Access is denied) while executed.
I bypassed the issue passing the option CREATE_BREAKAWAY_FROM_JOB to the CreateProcess() function located inside src\libs\zbxexec\execute.c
Tested on version 1.9.8 and it works.
I don't think this can be considered a bug, but on some scenarios may represents a big limitation, it would be great if this little modification could be pumped inside the development trunk.
Davide
I bypassed the issue passing the option CREATE_BREAKAWAY_FROM_JOB to the CreateProcess() function located inside src\libs\zbxexec\execute.c
Tested on version 1.9.8 and it works.
I don't think this can be considered a bug, but on some scenarios may represents a big limitation, it would be great if this little modification could be pumped inside the development trunk.
Davide