ja:documentation:pandorafms:technical_reference:03_anexo_cli

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
ja:documentation:pandorafms:technical_reference:03_anexo_cli [2025/09/12 23:13] junichija:documentation:pandorafms:technical_reference:03_anexo_cli [2025/11/22 23:42] (現在) – [--create_plugin_module] junichi
行 2306: 行 2306:
   * < module_address >   * < module_address >
   * < module_port > numerical value between ''1'' and ''65535''.   * < module_port > numerical value between ''1'' and ''65535''.
-  * < plugin_name >+  * < plugin_name > one of the registered (<wrap :en>**Management → Servers → Plugins**</wrap> menu).
   * < user >   * < user >
   * < password >   * < password >
-  * < parameters >+  * < params > 
 +  * < description > 
 +  * < module_group >
  
   * <モジュール名>   * <モジュール名>
行 2315: 行 2317:
   * <エージェント名>   * <エージェント名>
   * <アドレス>   * <アドレス>
-  * <ポート番号> +  * <ポート番号> ''1'' から ''65535'' までの数値。 
-  * <プラグイン名>+  * <プラグイン名> 登録済みのものの 1 つ (<wrap :ja>**管理(Management) → サーバ(Servers) → プラグイン(Plugins)**</wrap> メニュー)。
   * <ユーザ>   * <ユーザ>
   * <パスワード>   * <パスワード>
   * <パラメーター>   * <パラメーター>
 +  * <説明>
 +  * <モジュールグループ>
  
 **Parámetros opcionales**: **Parámetros opcionales**:
行 2325: 行 2329:
 **オプションパラメータ**: **オプションパラメータ**:
  
-  * < description > 
-  * < module_group > 
   * < min >   * < min >
   * < max >   * < max >
行 2337: 行 2339:
   * < history_data >   * < history_data >
   * < ff_threshold >   * < ff_threshold >
-  * < warning_str +  * < warning_string 
-  * < critical_str >+  * < critical_string >
   * < enable_unknown_events >   * < enable_unknown_events >
   * < each_ff >   * < each_ff >
   * < ff_threshold_normal >   * < ff_threshold_normal >
-  * < ff_treshold_warning >+  * < ff_threshold_warning >
   * < ff_threshold_critical >   * < ff_threshold_critical >
   * < timeout >    * < timeout > 
行 2354: 行 2356:
   * < number_of_intervals_in_warning > Allows state scaling by specifying the maximum number of consecutive intervals in which the module remains in warning state. If this value is exceeded, the module will escalate to critical status.   * < number_of_intervals_in_warning > Allows state scaling by specifying the maximum number of consecutive intervals in which the module remains in warning state. If this value is exceeded, the module will escalate to critical status.
  
-  * <説明> 
-  * <モジュールグループ> 
   * <最小値>   * <最小値>
   * <最大値>   * <最大値>
行 2394: 行 2394:
 **例 ([[#pandora_fms_cli|呼び出し]]および[[#書式|書式]] を参照):** **例 ([[#pandora_fms_cli|呼び出し]]および[[#書式|書式]] を参照):**
  
-Simple example for state scaling:+Basic example:
  
-状態スケーリングの簡単な例:+基本的な例:
  
 <code bash> <code bash>
-pandora_manage /etc/pandora/pandora_server.conf --create_plugin_module plugin_module_test generic_data 3f9c41953a072afa229aa0a7fe3a6203a1ecf86b40b8a13d8a7d9916f0210bb1 127.0.0.1 "1" "DNS Plugin" "admin" "pandora" "100" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" 2001+pandora_manage /etc/pandora/pandora_server.conf --create_plugin_module \  
 +  "My plugin module" "generic_data" "pandora.internals" "" "8080\  
 +  "DNS Plugin" "" "" "" "" "" "" "" "" "" "" ""
  
 +</code>
 +
 +Simple example for status scaling:
 +
 +状態スケーリングの簡単な例:
 +
 +<code bash>
 +pandora_manage /etc/pandora/pandora_server.conf --create_plugin_module \
 +  plugin_module_test generic_data \ 
 +  3f9c41953a072afa229aa0a7fe3a6203a1ecf86b40b8a13d8a7d9916f0210bb1 127.0.0.1 \
 +  "1" "DNS Plugin" "admin" "pandora" "100" "" "" "" "" "" "" "" "" "" "" ""
 +  "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" 2001
 </code> </code>
  
行 2408: 行 2422:
  
 <code bash> <code bash>
-pandora_manage /etc/pandora/pandora_server.conf --create_plugin_module 'My module' generic_data 'Mi agente' 192.168.12.123 8080 myplugin myuser mypass 'param1 param2 param3' 'Descripcion del modulo' 'General' 1 3 0 300 0 0 0 0 1+pandora_manage /etc/pandora/pandora_server.conf --create_plugin_module \  
 +  'My module' generic_data 'My agent' 192.168.12.123 8080 myplugin \  
 +  myuser mypass 'param1 param2 param3' 'Module description\  
 +  'General' 1 3 0 300 0 0 0 0 1
  
 +</code>
 +
 +Advanced example:
 +
 +高度な例:
 +
 +If a timeout needs to be set, each of the optional parameters must be explicitly passed with ''<nowiki>""</nowiki>'' so that the indicated position (in this case, the timeout) is correct:
 +
 +タイムアウトを設定する必要がある場合は、指定された位置 (この場合はタイムアウト) が正しくなるように、各オプションパラメータを ''<nowiki>""</nowiki>'' で明示的に渡す必要があります。
 +
 +<code bash>
 +pandora_manage /etc/pandora/pandora_server.conf --create_plugin_module \ 
 +  MyModule generic_data MyAgent 127.0.0.1 5667 \ 
 +  MyPlugin "" "" "" "" MyGroup "" "" "" "" "" "" \
 +  "" "" "" "" "" "" "" "" "" "" "" "" 30
 </code> </code>
  
  • ja/documentation/pandorafms/technical_reference/03_anexo_cli.txt
  • 最終更新: 2025/11/22 23:42
  • by junichi