Execute shell command from alert script


#1

Is it possible to execute a command from the alert script?
I know that with lua exists a function os.execute("/usr/sbin/somecommand") but it seems to not recognize it.


#2

Should be available with 2.3.2 now Server 2.3.2 beta/Client 2.3.1 beta/Restore 2.2.1 beta


#4

That was quickly. Nice! It works!
Now I can let zabbix to manage alerts, and email.
Thanks!

BTW when you save the script with a single quote (´) it duplicates. So it’s saved as double single quotes (´´), if you save again duplicates again, and so on. I manage to workaround it by concatenating string.char(39).