Zabbix Send By XMPP Script

A script to send notifies via xmpp client. This script is perfect for zabbix or another monitoring software.

Required

apt-get install sendxmpp

Use in Zabbix

  1. Upload sendxmpp.sh in /usr/lib/zabbix/alertscripts
  2. Set up the XMPP configuration data
nano sendxmpp.sh
chmod 600 sendxmpp.sh
  1. Add a new media type in Zabbix. Create new media type

  2. Configuration the new media type. Navigate in Zabbix Adminstration -> Media Types, create a new media type with Type set to script, Script set to sendxmpp.sh and three parameters: {ALERT.SENDTO}, {ALERT.SUBJECT}, {ALERT.MESSAGE}.

Create new media type

  1. Navigate to Configuration -> Users, click on a username e.g. admin, navigate to the Media tab and add a new one. Configured the send to field. Create new media type