{"id":13562881,"url":"https://github.com/jasonmcintosh/rabbitmq-zabbix","last_synced_at":"2025-04-03T19:31:43.406Z","repository":{"id":11418333,"uuid":"13869302","full_name":"jasonmcintosh/rabbitmq-zabbix","owner":"jasonmcintosh","description":"Zabbix RabbitMQ Configuration","archived":true,"fork":false,"pushed_at":"2023-01-23T23:29:12.000Z","size":139,"stargazers_count":251,"open_issues_count":18,"forks_count":168,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-11-04T15:51:42.062Z","etag":null,"topics":["monitoring","python","rabbitmq","zabbix","zabbix-sender"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonmcintosh.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-25T18:51:52.000Z","updated_at":"2024-06-18T20:40:27.000Z","dependencies_parsed_at":"2023-02-13T04:45:15.506Z","dependency_job_id":null,"html_url":"https://github.com/jasonmcintosh/rabbitmq-zabbix","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmcintosh%2Frabbitmq-zabbix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmcintosh%2Frabbitmq-zabbix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmcintosh%2Frabbitmq-zabbix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonmcintosh%2Frabbitmq-zabbix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonmcintosh","download_url":"https://codeload.github.com/jasonmcintosh/rabbitmq-zabbix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247065284,"owners_count":20877749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["monitoring","python","rabbitmq","zabbix","zabbix-sender"],"created_at":"2024-08-01T13:01:13.107Z","updated_at":"2025-04-03T19:31:43.131Z","avatar_url":"https://github.com/jasonmcintosh.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"rabbitmq-zabbix\n=======================\n\nZabbix 経由で RabbitMQ キューとサーバーをモニタする為のテンプレート。\n\n## なぜこれを作ったか:\nSNMP プラグインは公式にサポートされているプラグインではないので、rabbitmqctl ベースのモニタは大変遅いので。\n\n## どんなもの:\npython のスクリプト群、Zabbix テンプレート、及び自動発見の為の関連データ。\n\n## 使い方:\n1. /etc/zabbix/ フォルダにファイルをインストールし、Zabbix がアクセスできるパーミッションに変える。\n2. 設定を行う（下記参照）\n3. テンプレートを Zabbix サーバーにインポートする。\n4. zabbix_sender がインストールされていることを確認する。\n5. 注意: プロセスがタイムアウトしていないか確認する。処理に3秒以上かかるようなデータやキューが RabbitMQ 内にあるとこの現象が起きることがある。（以下、翻訳省略）\n6. ローカルの zabbix agent を再起動する。\n\n## 設定:\nオプションで .rab.auth ファイルを scripts/ ディレクトリ以下に作成しても良い。このファイルでデフォルトパラメータを変更することができる。フォーマットは `変数=値` で、1行に1つ記述できる。デフォルト値は次の通り:\n\n    USERNAME=guest\n    PASSWORD=guest\n    CONF=/etc/zabbix/zabbix_agent.conf\n\nこのファイルにフィルタを追加することもでき、そうするとどのキューをモニタするかを厳格化できる。このアイテムは JSONでエンコードされた文字列である。使用するのが柔軟になるようなフォーマットになっている。フィルタするために、単一のオブジェクトまたはオブジェクトのリストを設定することもできる。使用可能なキーは、status, node, name, consumers, vhost, durable,\nexclusive_consumer_tag, auto_delete, memory, policy である。\n\n例えば次のフィルタは全ての durable なキューを見つける:\n`FILTER='{\"durable\": true}'`\n\n指定した vhost に対する durable なキューのみに絞る場合は以下の様なフィルタになる:\n`FILTER='{\"durable\": true, \"vhost\": \"mine\"}'`\n\nキュー名のリストを出すには、以下のようなフィルタを設定:\n`FILTER='[{\"name\": \"mytestqueuename\"}, {\"name\": \"queue2\"}]'`\n\n将来、フィルタは正規表現や除外したキューを指定できるように改善されるかもしれない。\n\n## 変更\n* zabbix_sender を用いてデータをリクエストするように更新。（以下翻訳略）\n* オブジェクト一覧を扱えるようにフィルタを更新。\n\n## 未来のアイデア\n結果をローカルにキャッシュする機能（けど RabbitMQ を殺しすぎるかも）\nアイデアがアレばお気軽に mcintoshj@gmail.com までメールください。\n\n\n## Definite kudos to some of the other developers around the web.  In particular,\n* Python Scripts: https://github.com/kmcminn/rabbit-nagios\n* Base idea for the Rabbit template:  https://github.com/alfss/zabbix-rabbitmq\n* Also need to thank Lewis Franklin https://github.com/brolewis for his contributions!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonmcintosh%2Frabbitmq-zabbix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonmcintosh%2Frabbitmq-zabbix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonmcintosh%2Frabbitmq-zabbix/lists"}