ViPR SRM:警示整合、讀取 conf/bunit-group.csv 時發生錯誤、索引附近出現非法/不支援的轉義序列

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms



您在用於警示整合的事件處理管理員中收到下列錯誤:

警告 [2017-04-14 14:06:32 EDT] PropertyTagger::fillDataStructure():讀取 conf/bunit-group.csv
內容「hostname-{XXXXXXXXXXXX}」bunit-group.csv「VirtualMachine」、「Default」 的內容時發生錯誤

警告 [2017-04-18 09:39:03 EDT] PropertyTagger::createPropertyRecord():索引 17
附近的非法/不支援的轉義序列 字串 - domain\hostname
^
java.util.regex.PatternSyntaxException:索引 17 附近的非法/不受支援的轉義序列
 

Cause

這是由解析器未轉義的特殊字元(在本例中為方括弧“{}”和反背“\”)引起的。 

Resolution

為了解決此問題,您需要編輯位於APG/Event-Processing/Event-Property-Tagger/Alert-Consolidation/conf

中主要後端的generic-event-ptf.xml,並將引用設備的所有鍵屬性的字串類型值從正則表達式更改為字符串

,以便<:key-property delete-after-use=“false” string-type=“regex”>device</key-property>
如下所示:<key-property delete-after-use=“false” string-type=”string「>device</key-property>

儲存變更,然後重新開機 Event-Processing-Manager 以進行警示整合

Affected Products

SRM

Products

SRM
Article Properties
Article Number: 000061505
Article Type: Solution
Last Modified: 25 Sept 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.