ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring [2025/12/12 08:04] – [トラップの削除] junichija:documentation:pandorafms:monitoring:08_snmp_traps_monitoring [2026/06/06 22:53] (現在) – [アラートの追加] junichi
行 155: 行 155:
 ==== アラートの追加 ==== ==== アラートの追加 ====
  
-SNMP trap alerts have several fields that will be used to match SNMP traps received on the console. You can useThe fields you want can optionally be used to create more general or more specific rules depending on the need. It is accessed through the menu **Management** → **Alerts** → **SNMP alerts** → **Create**. Important parameters:+<WRAP group> 
 +<WRAP half column><WRAP left round box 90%>Menu <wrap :en>**Management → {{:wiki:pfms-management-alerts-icon.svg?nolink&21x21}} Alerts → SNMP alerts → Create alert**</wrap>.</WRAP> 
 +</WRAP> 
 +<WRAP half column>**SNMP trap alerts** have several fields that will be used to search for matches in the SNMP traps received in the Console. You can optionally use the fields you want to create more general or more specific rules based on the need. It consists of three configuration tabs:</WRAP> 
 +</WRAP>
  
-SNMP トラップアラートには、コンソールで受信した SNMP トラップがアラート条件にマッチするを検索するために使用されるいくつかのフィールドがあります。 オプションで、必要に応じて、より一般的なルールより具体的なルールを作成するフィールドを使用することができます。**管理(Management)** → **アラート(Alerts)** → **SNMP アラート(SNMP alerts)** → **作成(Create)** メニューでアクセスできます。以下が重要なパラメータです。+<WRAP group> 
 +<WRAP half column><WRAP left round box 90%>メニュー <wrap :ja>**管理(Management) → {{:wiki:pfms-management-alerts-icon.svg?nolink&21x21}} アラート(Alerts) → SNMP アラート(SNMP alerts) → アラート作成(Create alert)**</wrap>.</WRAP> 
 +</WRAP> 
 +<WRAP half column>**SNMPトラップアラート**には、コンソールで受信した SNMP トラップ内で一致するものを検索するために使用される複数のフィールドがあります。必要に応じて、フィールドを選択して、より一般的なルールまたはより具体的なルールを作成できます。設定タブは 3つあります。</WRAP> 
 +</WRAP>
  
-   * **Enterprise String**: Main OID of the SNMP trap. The presence of the chain will be searched, and it may even be a piece of the OID; for example ''1.21.34.2.3''  in a longer OID. It can be used in the same way in the field, and will perform the search as if it were''*1.21.34.2.3*''  (it is unnecessary to use asterisks as wildcard characters). For exact matches, end the string with the '' $ ''  character. +1. <wrap :en>**Basic**</wrap>, important parameters: 
-  * **Custom Value/OID**: Searches the **Value**  fields of the SNMP trap, as well as the **Custom OID**  and **Custom Value**  fields, that is, in the rest of the fields of TRAPSearch by regular expression works here. For exampleif you have an SNMP trap that sends the string ''Testing TRAP 225''  it is possible to search for any trap with the substring ''Testing TRAP''  using the regular expression ''Testing.*TRAP.*'' + 
-  * **SNMP Agent (IP)**: IP address of the Agent that sends the SNMP trap. It also allows you to use a regular expression or a substring. +1. <wrap :ja>**基本**</wrap>、重要なパラメータ: 
-  * **Trap type**: Filter by trap type. Most of the traps generated are usually of type **Other**; If you don'specify anything, it will look for any type of trap. + 
-  * **Trap subtype**: Filter alerts by SNMP trap subtype. It works separately from **Trap type**. +  * <wrap :en>**Custom Value/OID**</wrap>: Searches in the **Value** fields of the SNMP trap, as well as in the <wrap :en>**Custom OID**</wrap> and <wrap :en>**Custom Value**</wrap> fields, that is, in the rest of the TRAP fields. Regular expression search works here. For example if you have an SNMP trap that sends the string ''Testing TRAP 225'' it is possible to search for any trap with the substring ''Testing TRAP'' using the regular expression ''Testing.*TRAP.*'' 
-  * **Single value**: Filters by the trap value. This only refers to the single value of the primary OID, not any secondary OID. +  * <wrap :en>**Enterprise String**</wrap>: Main OID of the SNMP trap. It will search for the presence of the string, which can even be a piece of the OID; for example ''1.21.34.2.3'' in a longer OID. It can be used in the same way in the field, and it will perform the search as if it were: ''*1.21.34.2.3*'' (it is unnecessary to use asterisks as wildcard characters).  \\ //For exact matches// the string must end with the ''$'' character. 
-  * **Variable bindings/Data #1-20**: These are regular expressions that try to match variables 1 to 20. If there is a success, the alert is triggered. The value of the variable is saved in the corresponding ''_snmp_fx_''  macro (''_snmp_f1_'', ''_snmp_f2_'', …). Although only one regular expression can be specified for twenty variables, the ''_snmp_fx_''  macros are available for all of them (''_snmp_f11_'', ''_snmp_f12_'', …). +  * <wrap :en>**SNMP Agent (IP)**</wrap>: IP address of the Agent that sends the SNMP trap. //It also allows using a regular expression or a substring//
-  * **Alert Action**: Combo where the action that will execute the alert is determined. If an event is chosen, the normal alert generation event will not be generated. +  * <wrap :en>**Trap type**</wrap>Filters by trap type. Most generated traps are usually of the <wrap :en>**Other**</wrap> typeif you do not specify anything, it will search for any type of trap. 
-  * **Priority**Combo where the alarm priority is established+  * <wrap :en>**Trap subtype**</wrap>To filter alerts by SNMP trap subtype, it works independently of <wrap :en>**Trap type**</wrap>
-{{  :wiki:alertsnmp1.png?nolink&500  }}+  * <wrap :en>**Single value**</wrap>: Filters by the trap value. This only refers to the simple value of the main OID, **not any secondary OID**. 
 + 
 +  * <wrap :ja>**カスタム値/OID(Custom Value/OID)**</wrap>: SNMP トラップの**値**フィールド、および<wrap :ja>**カスタムOID**</wrap>と<wrap :ja>**カスタム値**</wrap>フィールド、つまりその他のトラップフィールドを検索します。正規表現検索が使用できます。たとえば、文字列 ''Testing TRAP 225'' を送信する SNMP トラップがある場合、正規表現 ''Testing.*TRAP.*'' を使用して、部分文字列 ''Testing TRAP'' を含むトラップを検索できます。 
 +  * <wrap :ja>**エンタープライズ文字列(Enterprise String)**</wrap>: SNMPトラップのメインOIDです。文字列の存在を検索します。文字列は OID の一部でも構いません。たとえば、より長い OID に含まれる ''1.21.34.2.3'' などです。現場でも同様に使用でき、検索は ''*1.21.34.2.3*'' のように実行されます(ワイルドカード文字としてアスタリスクを使用する必要はありません)。\\ //完全一致の場合//文字列は ''$'' 文字で終わる必要があります。 
 +  * <wrap :ja>**SNMPエージェント(IP)(SNMP Agent (IP))**</wrap>:SNMPトラップを送信するエージェントのIPアドレス。//正規表現または部分文字列の使用も可能です//。 
 +  * <wrap :ja>**トラップタイプ(Trap type)**</wrap>:トラップタイプでフィルタリングします。生成されるトラップのほとんどは通常<wrap :en>**その他**</wrap>タイプです。何も指定しない場合は、すべてのタイプのトラップが検索されます。 
 +  * <wrap :ja>**トラップサブタイプ(Trap subtypes)**</wrap>:SNMPトラップサブタイプでアラートをフィルタリングする場合、<wrap :en>**トラップタイプ**</wrap>とは独立して機能します。 
 +  * <wrap :ja>**単一値(Single value)**</wrap>: トラップ値でフィルタリングします。これはメイン OID の単純な値のみを参照し、**セカンダリ OID は参照しません**。 
 + 
 +2. <wrap :en>**Variable bindings**</wrap>, important parameters: 
 + 
 +2. <wrap :ja>**変数バインディング**</wrap>、重要なパラメータ: 
 + 
 +  * <wrap :en>**Variable bindings/Data**</wrap>: These are regular expressions that try to match variables ''1'' to ''20''. If there is a match, the alert is triggered. 
 + 
 +  * <wrap :ja>**変数バインディング/データ(Variable bindings/Data)**</wrap>: これらは、変数 ''1'' から ''20'' に一致する正規表現です。一致するものがあれば、アラートが発報されます。 
 + 
 +The variable value is saved in the corresponding ''_snmp_fx_'' and ''_safesnmp_fx_'' macros: 
 + 
 +変数の値は、対応する ''_snmp_fx_'' および ''_safesnmp_fx_'' マクロに保存されます。 
 + 
 +''_snmp_f1_'', ''_snmp_f2_'', … (''_safesnmp_f1_'', ''_safesnmp_f2_'', … ) 
 + 
 +**The difference between the two macros is that** ''_safesnmp_fx_'' **escapes characters that might cause problems with the shell**. 
 + 
 +**2 つのマクロの違いは、** ''_safesnmp_fx_'' が**シェルで問題を引き起こす可能性のある文字をエスケープすることです。** 
 + 
 +Although only one regular expression can be specified for twenty variables, the ''_snmp_fx_'' and ''_safesnmp_fx_'' macros are available for all of them (''_snmp_f11_'', ''_snmp_f12_'', … , ''_snmp_f20_''). 
 + 
 +20個の変数に対して指定できる正規表現は1つだけですが、''_snmp_fx_''と''_safesnmp_fx_''マクロは、それらすべてに対して使用できます(''_snmp_f11_''、''_snmp_f12_''、…、''_snmp_f20_'')。 
 + 
 +3. <wrap :en>**Action**</wrap>, important parameters: 
 + 
 +3. <wrap :ja>**アクション**</wrap>、重要なパラメータ: 
 + 
 +  * <wrap :en>**Alert Action**</wrap>List from where the action to be executed by the alert is determined. //If an event is chosen, the normal alert generation event will not be generated//
 +  * <wrap :en>**Priority**</wrap>: List where the alarm priority is set
 + 
 +  * <wrap :ja>**アラートアクション(Alert Action)**</wrap>アラートによって実行されるアクションが決定されるリスト。//イベントが選択された場合、通常のアラート生成イベントは生成されません//。 
 +  * <wrap :ja>**優先度(Priority)**</wrap>: アラームの優先度が設定されるリスト。
  
-  * **Enterprise 文字列(Enterprise String)**: トラップのメイン OID です。文字列が存在するかを検索でき、これはたとえば ''1.21.34.2.3''  をより長い OID に含むかどうかというように、OID の一部分とすることもできます。それを含むすべての OID をフィルタリングすることができます。''*1.21.34.2.3.*'' としても同様に動作します(ワイルドカードとして * 文字を使用する必要はありません)。厳密にマッチさせるために末尾を ''$''  とすることもできます。 
-  * **カスタム値/OID(Custom Value/OID)**: トラップのその他フィールドである、**Value** フィールドおよび、**Custom OID** 、**Custom Value** フィールドを検索します。ここでは正規表現での検索も可能です。たとえば、''Testing TRAP 225'' という文字列を送信するトラップがある場合、''Testing.*TRAP.*'' という正規表現で部分文字列 ''Testing TRAP'' を検索できます。 
-  * **SNMP エージェント (IP)(SNMP Agent (IP))**: トラップを送信するエージェントの IP アドレスです。同様に、正規表現や文字列検索が使えます。 
-  * **トラップタイプ(Trap type)**: トラップタイプによるフィルタです。多くのトラップは通常 **Other** タイプとなり、何も指定しなければ任意のタイプが検索されます。 
-  * **トラップサブタイプ(Trap subtype)**: トラップサブタイプによるフィルタです。**トラップタイプ** とは個別に動作します。 
-  * **単一値(Single value)**: トラップの値によるフィルタです。プライマリ OID の値のみ参照し、セカンダリ OID は参照しません。 
-  * **バインド変数/データ #1-20(Variable bindings/Data #1-20)**: 1 から 20 までの変数へマッチさせる正規表現です。マッチすると、アラートが発報されます。設定した値は、''_snmp_fx_''  マクロ(''_snmp_f1_'', ''_snmp_f2_'',…)で利用できます。20個の変数で指定できる正規表現は1つのみですが、''_snmp_fx_'' マクロは全て(''_snmp_f11_'', ''_snmp_f12_'', …)に対して利用できます。 
-  * **アラートアクション(Alert Action)**: アラート実行時のアクションを選択するコンボボックスです。イベントを選択すると、通常のアラート作成イベントは生成されません。 
-  * **優先度(Priority)**: アラートの優先度を設定するコンボボックスです。 
 <WRAP center round info 90%> <WRAP center round info 90%>
  
-The priorities of the alerts are different and have nothing to do with the priority of SNMP traps, nor with that of Pandora FMS events.+Alert priorities are different and have nothing to do with the priority of SNMP traps, nor with that of Pandora FMS events.
  
 </WRAP> </WRAP>
行 187: 行 225:
 <WRAP center round info 90%> <WRAP center round info 90%>
  
-アラートの優先順位は、トラップの優先順位や Pandora FMS イベントとも何の関係ありません。+アラートの優先順位は異なりSNMP トラップの優先順位とも、Pandora FMS イベントの優先順位とも関係ありません。
  
 </WRAP> </WRAP>
- 
  
 ==== アラートフィールドマクロ ==== ==== アラートフィールドマクロ ====
  • ja/documentation/pandorafms/monitoring/08_snmp_traps_monitoring.txt
  • 最終更新: 2026/06/06 22:53
  • by junichi