Hi all,
here is small patch which add environment to external scripts for alerter. I use it for better macro evaluation in external alerter. It will set this environment variables:
ZABBIX_ALERTID
ZABBIX_ACTIONID
ZABBIX_ALERTCLOCK
ZABBIX_MEDIATYPEID
ZABBIX_ALERTSTATUS
ZABBIX_ALERTRETRIES
ZABBIX_ALERTDELAY
Now I can take actionid in user script and find triggerid, hosts used in trigger and items used in trigger to evaluate some macros. I will do some example script later.
Feel free to use!
Lukas
here is small patch which add environment to external scripts for alerter. I use it for better macro evaluation in external alerter. It will set this environment variables:
ZABBIX_ALERTID
ZABBIX_ACTIONID
ZABBIX_ALERTCLOCK
ZABBIX_MEDIATYPEID
ZABBIX_ALERTSTATUS
ZABBIX_ALERTRETRIES
ZABBIX_ALERTDELAY
Now I can take actionid in user script and find triggerid, hosts used in trigger and items used in trigger to evaluate some macros. I will do some example script later.
Feel free to use!
Lukas
Comment