| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
| ja:documentation:pandorafms:management_and_operation:01_alerts [2026/03/21 04:22] – [定義済アラートアクション] junichi | ja:documentation:pandorafms:management_and_operation:01_alerts [2026/04/18 06:34] (現在) – [アラートの仕組] junichi |
|---|
| ==== アラートの仕組 ==== | ==== アラートの仕組 ==== |
| |
| {{ :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 の送信、スクリプトの実行などです。 |
| * <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>: [[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>**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) を設定できます。 |
| * 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. |
| |
| * モジュールで障害および警告のしきい値を定義します。 | * モジュールで障害および警告のしきい値を定義します。 |
| * アラートが復旧すると、現在の **一致するアラートの数** 設定に対応するアクションだけでなく、その時点までに実行されたすべてのアクションが再度実行されます。 | * アラートが復旧すると、現在の **一致するアラートの数** 設定に対応するアクションだけでなく、その時点までに実行されたすべてのアクションが再度実行されます。 |
| * さらに、**しきい値** を 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 /> |
| | ''_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 ^ |
| | ''_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".| |
| | ''_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")。| |