In some external script invocations a lot of variables may be required. For instance we have a script that needs about 10 arguments to run. Some of these arguments include "secrets" such as:
Some of those inputs are generally coming from (host) macro's (e.g. login details) since they are re-used across multiple checks.
In order to optimize this and make the command (configuration) cleaner, it would help a lot of we could provide custom environment variables that that will be provided, such as:
External Script definition:
If these environment variables could be configured in Zabbix and be passed along to the externalscript that would make defining externalscripts a lot easier. If someone wants they could even put all the arguments into variables, making it look a lot cleaner.
It would be desired that the environment variables would be parsed for host- & global macro's, so these can be used here too.