Zabbix uses common functionality for external checks, user parameters, system.run items, custom alert scripts, remote commands and user scripts.
The command/script is executed similarly on both Unix and Windows platforms:
Zabbix assumes that a command/script has done processing when the initial child process has exited AND no other process is still keeping the output handle/file descriptor open. When processing is done, ALL created processes are terminated.
All double quotes and backslashes in the command are escaped with backslashes and the command is enclosed in double quotes.
Exit code are checked with the following conditions:
Possible frontend messages and log entries for failed commands/scripts: