O'Reilly logo

Mastering Zabbix by Andrea Dalle Vacche, Stefano Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating RT tickets from the Zabbix events

Zabbix will search for custom alert scripts in the directory specified by AlertScriptsPath in the zabbix_server.conf file. In the case of a default install, this would be /usr/local/share/zabbix/alertscripts/.

This is where we will put our script called rt_mkticket.py. The Zabbix action we configured earlier will call this script with the following three arguments, in order:

  • recipient
  • subject
  • message

As we have seen, the content of the subject and the message are defined in the action operation and depend on the specifics of the event triggering action. The recipient is defined in the media type configuration of the user receiving the message, and it is usually an e-mail address. In our case, it will be the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required