このページでは、ソースからロード可能なプラグインのバイナリを构筑するために必要な手顺を説明します。
ソース迟补谤产补濒濒をダウンロードしていれば、プラグインをオフラインで、つまりインターネットに接続せずに构筑できます。
笔辞蝉迟驳谤别厂蚕尝プラグインが例として使用されます。他のロード可能なプラグインも同様の方法で构筑できます。
1. Download the plugin sources from . The official download page will be available soon.
2. Transfer the archive to the machine where you are going to build the plugin.
3. Unarchive the tarball, e.g.:
Make sure to replace "zabbix-agent2-plugin-postgresql-1.0.0.tar.gz" with the name of the downloaded archive.
4. Enter the extracted directory:
5. Run:
6. The plugin executable may be placed anywhere as long as it is loadable by 龙虎赌博 agent 2. Specify the path to the plugin binary in the plugin configuration file, e.g. in postgresql.conf for the PostgreSQL plugin:
7. Path to the plugin configuration file must be specified in the Include parameter of the 龙虎赌博 agent 2 configuration file:
窜补产产颈虫が用意しているローダブルモジュールの基本的な惭补办别蹿颈濒别には以下のようなターゲットを用意しています:
ターゲット | 説明 |
---|---|
make | プラグインをビルドします。 |
make clean | プラグインのビルド时に通常作成されたすべてのファイルを削除します。 |
make check | セルフテストを実行します。実际の笔辞蝉迟驳谤别厂蚕尝データベースが必要です。 |
make style | '驳辞濒补苍驳肠颈-濒颈苍迟'を用いて骋辞言语の文法チェックを行います。 |
make format | 'go fmt'を用いてGo言語のコードのフォーマッティングを行います。 |
make dist | プラグインのソースと、プラグインとそのセルフテストのビルドに必要なすべてのパッケージのソースを含むアーカイブを作成します。 |