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



您在 Alert-Consolidation 的 Event-Processing-Manager 中收到以下错误:

警告 [2017-04-14 14:06:32 EDT] PropertyTagger:: fillDataStructure():读取 conf/bunit-group.csv
内容时出错 “”hostname-{XXXXXXXXXXXX}“,”VirtualMachine“,”Default“” on line xxx in conf/bunit-group.csv is invalid

WARNING [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>
looks like: <key-property delete-after-use=“false” string-type=”string“>device</key-property>

保存更改并重新启动 Event-Processing-Manager for Alert-Consolidation

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.