If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
I'm sorry, I'm not sure what you are trying so ask, but I think I have an idea. Are you trying to create a custom media script? One that will run when a trigger gets tripped?
If so, take a look here. That will get you set up with a custom media script. Of course, you want to make sure your script can be executed by Zabbix.
Now, to get a trigger to use the script, you have to add the script media to a user's account with the severity set to some level. Then set up a trigger's action to point at that user (or a group that contains that user). Now, when a trigger goes off, and it points at that user, and it is the same severity as the script, then the script will get run by Zabbix.
Note that the subject and body of the message you enter in the trigger's action are passed to the script as parameters. That can be useful for having the script take different actions depending on the message it gets passed.
Comment