Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 778 Bytes

script.md

File metadata and controls

32 lines (23 loc) · 778 Bytes

Shell script (Zabbix 3.0 and higher)

Place the notify.events.sh script to the AlertScriptPath directory specified in the Zabbix configuration file (e.g. /usr/lib/zabbix/alertscripts/)

Set the execute permission to this script:

chmod +x notify.events.sh

Go to the "Administration" -> "Media types" section and add the following parameters to create a media-type:

Type:
    Script

Script name:
    notify.events.sh

Script parameters:
    {ALERT.SENDTO}
    {ALERT.SUBJECT}
    {ALERT.MESSAGE}
    {TRIGGER.NSEVERITY}
    {TRIGGER.STATUS}

as you can see below:

script-media-type-create

Configure your Zabbix user according to the instructions.