差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
ja:documentation:08_technical_reference:07_anexo_console_extensions_development [2022/08/06 22:45] – [拡張のソースコード] junichi | ja:documentation:08_technical_reference:07_anexo_console_extensions_development [2022/08/06 22:56] – [サブディレクトリ] junichi | ||
---|---|---|---|
行 460: | 行 460: | ||
=== API 呼び出し関数 === | === API 呼び出し関数 === | ||
- | これは、数行のコードです。このコードでは次のことを行います。 | ||
- | * 拡張を Pandora メニューへ挿入\\ **extensions_add_operation_menu_option(" | ||
- | * **' | ||
- | * **' | ||
- | * **' | ||
- | | + | There are only a few lines of code. The operations in these lines are: |
+ | |||
+ | 数行のコードです。この行で行う処理は次の通りです。 | ||
+ | |||
+ | * Insert the extension into Pandora FMS menu. | ||
+ | * And it's with the call | ||
+ | |||
+ | * 拡張を Pandora FMS メニューへ挿入 | ||
+ | * そして、呼び出し | ||
+ | |||
+ | < | ||
+ | extensions_add_operation_menu_option(" | ||
+ | |||
+ | </ | ||
+ | |||
+ | Where: | ||
+ | |||
+ | ここで、 | ||
+ | |||
+ | * **' | ||
+ | * **' | ||
+ | * **' | ||
+ | * Define the main function of this extension . \\ And it's with the call '' | ||
+ | * **' | ||
+ | |||
+ | * **' | ||
+ | * **' | ||
+ | * **' | ||
+ | | ||
* ' | * ' | ||
行 472: | 行 495: | ||
=== ディレクトリ構成 === | === ディレクトリ構成 === | ||
- | {{ wiki:Directory_extension_example.png? | + | |
- | 拡張のインストールはとても簡単です。なぜなら、Pandora コンソールは新たな拡張を検索し、それを見つけたらシステムに追加します。 | + | {{ :wiki:directory_extension_example.png }} |
- | 拡張のファイルすべてを Pandora コンソールをインストールした extension ディレクトリにコピーするだけです。ただし、**Pandora コンソールが拡張のファイルおよびサブディレクトリを読めるようにパーミッションを設定する**必要があります。 | + | |
+ | The instalation of extension is very easy, because the Pandora FMS Console search new extensions and add into system when new extension is found. You only copy all files of extensions into the directory extension in your [[: | ||
+ | |||
+ | 拡張のインストールはとても簡単です。なぜなら、Pandora | ||
+ | 拡張のファイルすべてを | ||
画面例では、extension は次のようなディレクトリ構造になっています。 | 画面例では、extension は次のようなディレクトリ構造になっています。 | ||
- | * module_groups | + | * '' |
- | * icon_menu.png | + | * '' |
- | * module_groups.php | + | * '' |
- | そして、例では extension ディレクトリは、/// | + | And the extension directory is for example in ''/ |
+ | |||
+ | そして、例では extension ディレクトリは、'' | ||
=== サブディレクトリ === | === サブディレクトリ === | ||
- | この場合、例では一つのサブディレクトリがあります。そして、通常、拡張は一つのサブディレクトリを持つ必要があります。サブディレクトリは、拡張のメインファイルと同じ名前です。この例のサブディレクトリには、アイコンファイル (icon_menu.png) のみがあります。このアイコンは、 Pandora メニューに表示されます。 | + | |
+ | In this case, the example has one subdirectory, | ||
+ | |||
+ | この場合、例では一つのサブディレクトリがあります。そして、通常、拡張は一つのサブディレクトリを持つ必要があります。サブディレクトリは、拡張のメインファイルと同じ名前です。この例のサブディレクトリには、アイコンファイル ('' | ||