fmtaylor
05-04-2005, 22:17
I cannot seem to figure out how to add a script media type. The pull down box only lists e-mail. I have looked and looked but can't seem to locate an option or configuration item that will allow me to add different media types.
please enlighten me...
Nate Bell
12-04-2005, 20:35
I'm using Zabbix 1.1alpha7 so if you are using a previous build the series of clicks may be different, but I think this will help:
Before being able to select a custom script media type, you must define this media type in Zabbix's configuration menu. Click on the Configuration tab then General and there should be a pull down box on the right side of the screen. If you select it, one of the options will be Media types. Select that and you will have a screen where you can define new media types. Select the Type pull down box and choose script. This will give you a description option and a text field to define the name of the script. The default location of your script files can be found in your Zabbix server .conf file (zabbix_server.conf in the case of alpha7). The line looks like:
#Location for custom alert scripts
AlertScriptsPath=/usr/local/zabbix/scripts
That's the path I use, so if I enter the name test.sh into the script name field, Zabbix will attempt to run /usr/local/zabbix/scripts/test.sh. Once you have a script media created, you should be able to select it from the pull down menu you were trying before. Hope that helps.
Nate