ja:documentation:pandorafms:management_and_operation:01_alerts

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:management_and_operation:01_alerts [2026/03/21 04:19] – [アラートのコマンド編集] junichija:documentation:pandorafms:management_and_operation:01_alerts [2026/04/18 06:34] (現在) – [アラートの仕組] junichi
行 33: 行 33:
 ==== アラートの仕組 ==== ==== アラートの仕組 ====
  
-{{  :wiki:esquema-alert-structure.png  }}+{{  :wiki:pfms-alerts-alert_structure.png?700  }}
  
-  * **[[#ks2|Commands]]**: Specify //what will be done//; It will be the execution that Pandora FMS server will carry out when triggering the alert. +  * **[[#ks2|Commands]]**: Specify //what will be done;// it will be the execution that Pandora FMS server will carry out when triggering the alert. 
-  * **[[#ks3|Actions]]**: Specify //how it will be done;//  they are the customizations of the command arguments. +  * **[[#ks3|Actions]]**: Specify //how it will be done;// they are the customizations of the command arguments. 
-  * **[[#ks4|Templates]]**: Specify //when it will be done;//  define the conditions for triggering the action(s).+  * **[[#ks4|Templates]]**: Specify //when it will be done;// define the conditions for triggering the action(s).
  
   * **[[#ks2|コマンド]]**: アラートが発生したときに Pandora FMS サーバが実行するコマンド定義します。コマンドの例としては、ログへの書き込み、email または SMS の送信、スクリプトの実行などです。   * **[[#ks2|コマンド]]**: アラートが発生したときに Pandora FMS サーバが実行するコマンド定義します。コマンドの例としては、ログへの書き込み、email または SMS の送信、スクリプトの実行などです。
行 275: 行 275:
  
 **管理(Management)** メニュー → **アラート(Alerts)** → **アクション(Actions)** → **作成(Create)** **管理(Management)** メニュー → **アラート(Alerts)** → **アクション(Actions)** → **作成(Create)**
 +
 +<WRAP center round tip 90%>
 +
 +If you are going to create an alert action based on one of the [[#ks2_3|predefined alert commands]], it is more practical to **copy** the [[#ks3_3|predefined alert action]] and then modify it.
 +
 +</WRAP>
 +
 +<WRAP center round tip 90%>
 +
 +[[#ks2_3|定義済みのアラートコマンド]]のいずれかに基づいてアラートアクションを作成する場合は、[[#ks3_3|定義済みのアラートアクション]]を**コピー**してから変更する方が実用的です。
 +
 +</WRAP>
  
   * **Group: **The group of the action. You may only assign a group to which the user creating the alert command belongs, unless that user explicitly belongs to the group [[:en:documentation:pandorafms:management_and_operation:11_managing_and_administration#the_group_22all22_28todos2fanyone29|ALL]]. If the associated **command**  has a group other than //All//, only the group associated with the command or the //All//  group can be set as the action's group. If for some reason this defers, you will see a warning message for prompt correction by a user with the necessary rights.   * **Group: **The group of the action. You may only assign a group to which the user creating the alert command belongs, unless that user explicitly belongs to the group [[:en:documentation:pandorafms:management_and_operation:11_managing_and_administration#the_group_22all22_28todos2fanyone29|ALL]]. If the associated **command**  has a group other than //All//, only the group associated with the command or the //All//  group can be set as the action's group. If for some reason this defers, you will see a warning message for prompt correction by a user with the necessary rights.
行 308: 行 320:
   * <wrap :en>**Mail to Admin**</wrap>: Use the predefined command ''eMail''  to send an email message as configured in the <wrap :en>**Destination address**</wrap> field.   * <wrap :en>**Mail to Admin**</wrap>: Use the predefined command ''eMail''  to send an email message as configured in the <wrap :en>**Destination address**</wrap> field.
   * <wrap :en>**Monitoring Event**</wrap>: Use the command of the same name to configure event types and severity (triggered and recovered), among other details.   * <wrap :en>**Monitoring Event**</wrap>: Use the command of the same name to configure event types and severity (triggered and recovered), among other details.
-  * <wrap :en>**Pandora ilert, Pandora Slack, Pandora Telegram, Pandora Vonage**</wrap>: Pandora FMS can send notifications, after configuration, to multiple instant messaging applications.+  * <wrap :en>**Pandora ilert, Pandora Slack, [[https://pandorafms.com/guides/public/search?search=telegram&types%5B%5D=book&exact%5B%5D=&tags%5B%5D=&filters%5Bupdated_after%5D=&filters%5Bupdated_before%5D=&filters%5Bcreated_after%5D=&filters%5Bcreated_before%5D=|Pandora Telegram]], Pandora Vonage**</wrap>: Pandora FMS can send notifications, after configuration, to multiple instant messaging applications.
   * <wrap :en>**Restart agent**</wrap>: It allows you to send instructions ([[:en:documentation:pandorafms:monitoring:02_operations#ks7_1|restart by default]]) according to the ''Remote agent control''  command to PFMS EndPoints.   * <wrap :en>**Restart agent**</wrap>: It allows you to send instructions ([[:en:documentation:pandorafms:monitoring:02_operations#ks7_1|restart by default]]) according to the ''Remote agent control''  command to PFMS EndPoints.
   * <wrap :en>**Send Report by e-mail**</wrap> and <wrap :en>**Send Report by e-mail (from template)**</wrap>: For sending reports by email. Here you may configure the recipients, the report itself (or template), and its format (PDF, JSON, or CSV).   * <wrap :en>**Send Report by e-mail**</wrap> and <wrap :en>**Send Report by e-mail (from template)**</wrap>: For sending reports by email. Here you may configure the recipients, the report itself (or template), and its format (PDF, JSON, or CSV).
行 316: 行 328:
   * <wrap :ja>**Mail to Admin**</wrap>: 定義済みコマンド ''eMail'' を使用して、<wrap :ja>**Destination address**</wrap> フィールドで設定されたメールアドレスにメールを送信します。   * <wrap :ja>**Mail to Admin**</wrap>: 定義済みコマンド ''eMail'' を使用して、<wrap :ja>**Destination address**</wrap> フィールドで設定されたメールアドレスにメールを送信します。
   * <wrap :ja>**Monitoring Event**</wrap>: 同名のコマンドを使用して、イベントの種類や重要度(発生および回復)などの詳細を設定します。   * <wrap :ja>**Monitoring Event**</wrap>: 同名のコマンドを使用して、イベントの種類や重要度(発生および回復)などの詳細を設定します。
-  * <wrap :ja>**Pandora ilert、Pandora Slack、Pandora Telegram、Pandora Vonage**</wrap>: Pandora FMS は、設定後複数のインスタントメッセージングアプリケーションに通知を送信できます。+  * <wrap :ja>**Pandora ilert、Pandora Slack、[[https://pandorafms.com/guides/public/search?search=telegram&types%5B%5D=book&exact%5B%5D=&tags%5B%5D=&filters%5Bupdated_after%5D=&filters%5Bupdated_before%5D=&filters%5Bcreated_after%5D=&filters%5Bcreated_before%5D=|Pandora Telegram]]、Pandora Vonage**</wrap>: Pandora FMS は、設定後複数のインスタントメッセージングアプリケーションに通知を送信できます。
   * <wrap :ja>**Restart agent**</wrap>: ''Remote agent control'' コマンドに従って、PFMS エンドポイントに指示([[:ja:documentation:pandorafms:monitoring:02_operations#ks7_1|デフォルトでは再起動]])を送信できます。   * <wrap :ja>**Restart agent**</wrap>: ''Remote agent control'' コマンドに従って、PFMS エンドポイントに指示([[:ja:documentation:pandorafms:monitoring:02_operations#ks7_1|デフォルトでは再起動]])を送信できます。
   * <wrap :ja>**Send Report by e-mail**</wrap> および <wrap :ja>**Send Report by email (from template)**</wrap>: レポートをメールで送信します。ここでは、受信者、レポート自体 (またはテンプレート)、およびその形式 (PDF、JSON、または CSV) を設定できます。   * <wrap :ja>**Send Report by e-mail**</wrap> および <wrap :ja>**Send Report by email (from template)**</wrap>: レポートをメールで送信します。ここでは、受信者、レポート自体 (またはテンプレート)、およびその形式 (PDF、JSON、または CSV) を設定できます。
行 569: 行 581:
        * When an alert recovers, all actions that have been executed up to that point will be executed again, not just those that correspond to the current **Number of alerts match from** setting.        * When an alert recovers, all actions that have been executed up to that point will be executed again, not just those that correspond to the current **Number of alerts match from** setting.
        * Additionally, a **Threshold** can be placed as a second parameter, for which an alert cannot be launched more than once during said interval.        * Additionally, a **Threshold** can be placed as a second parameter, for which an alert cannot be launched more than once during said interval.
-   * Finally you can configure the sending of alert messages through instant messaging like [[https://pandorafms.com/guides/public/search?term=telegram|Telegram]], for example.+  * Finally you may configure alert message forwarding through instant messaging like [[https://pandorafms.com/guides/public/search?search=telegram&types%5B%5D=book&exact%5B%5D=&tags%5B%5D=&filters%5Bupdated_after%5D=&filters%5Bupdated_before%5D=&filters%5Bcreated_after%5D=&filters%5Bcreated_before%5D=|Telegram]], for example.
  
    * モジュールで障害および警告のしきい値を定義します。    * モジュールで障害および警告のしきい値を定義します。
行 579: 行 591:
        * アラートが復旧すると、現在の **一致するアラートの数** 設定に対応するアクションだけでなく、その時点までに実行されたすべてのアクションが再度実行されます。        * アラートが復旧すると、現在の **一致するアラートの数** 設定に対応するアクションだけでなく、その時点までに実行されたすべてのアクションが再度実行されます。
        * さらに、**しきい値** を 2 番目のパラメータとして設定できます。このパラメータに対しては、上記の間隔中に複数回アラートを起動することはできません。        * さらに、**しきい値** を 2 番目のパラメータとして設定できます。このパラメータに対しては、上記の間隔中に複数回アラートを起動することはできません。
-   * 最後に、[[https://pandorafms.com/guides/public/search?term=telegram|Telegram]] などのインスタントメッセージングを介してアラートメッセージの送信を設定できます。+   * 最後に、[[https://pandorafms.com/guides/public/search?search=telegram&types%5B%5D=book&exact%5B%5D=&tags%5B%5D=&filters%5Bupdated_after%5D=&filters%5Bupdated_before%5D=&filters%5Bcreated_after%5D=&filters%5Bcreated_before%5D=|Telegram]] などのインスタントメッセージングを介してアラートメッセージの送信を設定できます。
  
 <wrap #ks7 /> <wrap #ks7 />
行 1463: 行 1475:
 |  ''_lastdatatimestamp_''  |Last date and time of check received by a module (useful for unknown transition alerts).| |  ''_lastdatatimestamp_''  |Last date and time of check received by a module (useful for unknown transition alerts).|
 |  ''_lastdatatime_''  |Last date and time of check received (in Unix time format) by a module (useful for unknown transition alerts).| |  ''_lastdatatime_''  |Last date and time of check received (in Unix time format) by a module (useful for unknown transition alerts).|
 +|  ''_logTimestamp_''  | Timestamp when the log was created. |
 +|  ''_logSource_''  | Source of the log that triggered the alert. |
  
 ^ マクロ ^ 説明 ^ ^ マクロ ^ 説明 ^
 | ''_lastdatatimestamp_'' |モジュールが最後に受信したチェックの日時(不明な遷移アラートに便利です)。| | ''_lastdatatimestamp_'' |モジュールが最後に受信したチェックの日時(不明な遷移アラートに便利です)。|
 | ''_lastdatatime_'' |モジュールが最後に受信したチェックの日時(Unix 時刻形式)(不明な遷移アラートに便利です)。| | ''_lastdatatime_'' |モジュールが最後に受信したチェックの日時(Unix 時刻形式)(不明な遷移アラートに便利です)。|
 +|  ''_logTimestamp_''  | ログが作成された時刻のタイムスタンプ。|
 +|  ''_logSource_''  | アラートを発報したログのソース。 |
  
 ^  Macro  ^  Description  ^ ^  Macro  ^  Description  ^
行 1533: 行 1549:
 |  ''_target_ip_''  |IP address of the Module target.| |  ''_target_ip_''  |IP address of the Module target.|
 |  ''_target_port_''  |Module target port.| |  ''_target_port_''  |Module target port.|
 +|  ''_telegramtoken_''  |It is replaced by the token configured in <wrap :en>**Management → Settings → System settings → General setup → Alerts configuration → Telegram configuration**</wrap>.|
 |  ''_timestamp_''  |Time and date the alert was triggered.| |  ''_timestamp_''  |Time and date the alert was triggered.|
 |  ''_time_down_human_''  |This macro only works for recovery alerts: \\ Downtime or offline time in long format, such as: "1day 10h 35m 40s".| |  ''_time_down_human_''  |This macro only works for recovery alerts: \\ Downtime or offline time in long format, such as: "1day 10h 35m 40s".|
行 1541: 行 1558:
 | ''_target_ip_'' |モジュールターゲットの IP アドレス。| | ''_target_ip_'' |モジュールターゲットの IP アドレス。|
 | ''_target_port_'' |モジュールターゲットのポート番号。| | ''_target_port_'' |モジュールターゲットのポート番号。|
 +|  ''_telegramtoken_''  |これは、<wrap :ja>**管理(Management) → セットアップ(Settings) → システム設定(System settings) → 一般設定(General setup) → アラート設定(Alerts configuration) → Telegram設定(Telegram configuration)**</wrap>で設定されたトークンに置き換えられます。|
 | ''_timestamp_'' |アラートが発報された日時。| | ''_timestamp_'' |アラートが発報された日時。|
 | ''_time_down_human_'' |このマクロは復旧アラートにのみ機能します: \\ ダウンタイムまたはオフライン時間 (長い形式、例: "1day 10h 35m 40s")。| | ''_time_down_human_'' |このマクロは復旧アラートにのみ機能します: \\ ダウンタイムまたはオフライン時間 (長い形式、例: "1day 10h 35m 40s")。|
  • ja/documentation/pandorafms/management_and_operation/01_alerts.1774066772.txt.gz
  • 最終更新: 2026/03/21 04:19
  • by junichi