Skip to content

An alarm callback plugin for executing a script on Graylog2's server.

License

Notifications You must be signed in to change notification settings

MartinK07/graylog2-plugin-exec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

graylog2-plugin-exec

An alarm callback plugin for executing a script on Graylog2's server.

Installation

Download the plugin and place the .jar file in your Graylog plugin directory. The plugin directory is the plugins/ folder relative from your graylog-server directory by default and can be configured in your graylog.conf file.

Restart graylog-server and you are done.

Usage

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.

Example

For calling the script /root/script.php and passing it a parameter just fill the box like this: php /root/script.php param1

Build

This project is using Maven and requires Java 7 or higher.

You can build a plugin (JAR) with mvn package.

Copyright

Copyright (c) 2016 Ahmad Niksefat. See LICENSE for further details.

About

An alarm callback plugin for executing a script on Graylog2's server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%