An alarm callback plugin for executing a script on Graylog2's server.
Download the plugin
and place the
.jar file in your Graylog plugin directory. The plugin directory
plugins/ folder relative from your
graylog-server directory by default
and can be configured in your
graylog-server and you are done.
Create a "Execute Command Alarm Callback" on the "Manage alerts" page of your stream.
Enter the requested configuration and save.
Make sure you also configured alert conditions for the stream so that the alerts are actually triggered.
For calling the script /root/script.php and passing it a parameter just fill the box like this:
php /root/script.php param1
This project is using Maven and requires Java 7 or higher.
You can build a plugin (JAR) with
Copyright (c) 2016 Ahmad Niksefat. See LICENSE for further details.