【日本語訳】Create items and triggers in Zabbix based on Graylog stream alerts

github.com
Create items and triggers in Zabbix based on Graylog stream alerts
GraylogのStreamからのアラートに基づいて、Zabbixのitemとtriggerを生成する。

This application bridges the gap between graylog and zabbix.
このアプリケーションは、graylogとzabbixの間の橋渡しをします。
Its goal is to create and update items in zabbix based on alerts in graylog.
このアプリケーションの目的は、Graylogのアラートに基づいてzabbix内のアイテムを作成および更新することです。
There is no data going from zabbix to graylog.
zabbixからgraylogへのデータの流れはありません。

How to use
・ bin/app.pl listens for callbacks from graylog
bin/app.pl はgraylogからのコールバックを待ち受けます。
・ bin/heartbeat.pl runs approx. every minute to update the heartbeat item in zabbix
bin/heartbeat.pl は、zabbixのハートビートアイテムを更新するたびにほぼ実行されます。
・ bin/discovery.pl runs approx. every minute to add/remove graylog streams in zabbix
bin/discovery.plは、zabbixでGraylogストリームを追加/削除するたびに、ほぼ実行されます。

Configuration is passed by setting the APP_CONFIG environment variable to a valid JSON-object.
設定は、APP_CONFIG環境変数を有効なJSONオブジェクトに設定することによって渡されます。
You can find an example inside this repository.
このリポジトリ内にサンプルがあります。
Pass MOJO_VERBOSE=1 to show command execution details.
コマンド実行の詳細を表示するには「MOJO_VERBOSE = 1」を渡します。

How to build
Simply type make.
make コマンドを叩く。

How to configure Graylog
Assuming our application is running at https://example.com.
このアプリケーションがhttps://example.comで動作していると仮定します。
Configure Graylog to send alerts to https://example.com/alert/{severity} where {severity} is one of warning or critical.
https://example.com/alert/{severity}にアラートを送信するようにGraylogを設定します。{severity}は警告(warning)またはクリティカル(critical)のいずれかです。