Hi:
I have user defined script for zabbix-agentd like this "UserParameter=my_zabbix_report,sudo /usr/lib/zabbix/my_zabbix_report.pl"
the script may run slowly. so the script will report ok asap, then collect data in background and report later as trapper items.
under linux, I can just use fork and zabbix-agentd is satisfied with the returned parent. the forked child will continue to do the job in background.
but under windows, zabbix-agentd.exe will kill all the child when parent return. I try to spawn my child many times to break the process tree (eg: when "killed process three" under task manager, my child can still live). but zabbix-agentd.exe still can find out all the children and kill them all. I don't know how things work under windows. is it possible I can spawn a child working in background and escape killing from zabbix-agentd.exe? is there any 3rd party spawn process tool I can use?
thanks a lot for help!!
I have user defined script for zabbix-agentd like this "UserParameter=my_zabbix_report,sudo /usr/lib/zabbix/my_zabbix_report.pl"
the script may run slowly. so the script will report ok asap, then collect data in background and report later as trapper items.
under linux, I can just use fork and zabbix-agentd is satisfied with the returned parent. the forked child will continue to do the job in background.
but under windows, zabbix-agentd.exe will kill all the child when parent return. I try to spawn my child many times to break the process tree (eg: when "killed process three" under task manager, my child can still live). but zabbix-agentd.exe still can find out all the children and kill them all. I don't know how things work under windows. is it possible I can spawn a child working in background and escape killing from zabbix-agentd.exe? is there any 3rd party spawn process tool I can use?
thanks a lot for help!!