CapTylor
2008-07-10 10:23:37 UTC
Hi,
I am seeing the following entries in the translator.log:
2008-07-10 18:03:36,489 INFO [OpenNMS.EventTranslator]
EventIpcManagerDefaultImpl: run: calling onEvent on OpenNMS.EventTranslator
for event uei.opennms.org/generic/traps/SNMP_Link_Down dbid 24008 with time
Thursday, July 10, 2008 10:03:36 AM GMT
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: TransSpec.matches: No match comparing spec UEI:
uei.opennms.org/external/hyperic/alert with event UEI:
uei.opennms.org/generic/traps/SNMP_Link_Down
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: TransSpec.matches: checking mappings for spec.
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: AttributeValueSpec.matches: Event attributeValue
doesn't match because attributeValue itself is null
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: TranslationMapping.assignmentsMatch: assignmentSpec:
ifdesc doesn't match.
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator] EventTranslator:
onEvent: received event that matches no translations:
What does the line "AttributeValueSpec.matches: Event attributeValue doesn't
match because attributeValue itself is null" means?
Currently my event translation is configured as follow:
<event-translation-spec uei="
uei.opennms.org/generic/traps/SNMP_Link_Down">
<mappings>
<mapping>
<assignment type="parameter" name="ifdesc">
<value type="sql" result="select distinct snmpIfDescr from
snmpInterface where snmpIfIndex=?">
<value type="parameter" name=".1.3.6.1.2.1.2.2.1.1"
matches=".*" result="${1}" />
</value>
</assignment>
</mapping>
</mappings>
</event-translation-spec>
Regards.
I am seeing the following entries in the translator.log:
2008-07-10 18:03:36,489 INFO [OpenNMS.EventTranslator]
EventIpcManagerDefaultImpl: run: calling onEvent on OpenNMS.EventTranslator
for event uei.opennms.org/generic/traps/SNMP_Link_Down dbid 24008 with time
Thursday, July 10, 2008 10:03:36 AM GMT
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: TransSpec.matches: No match comparing spec UEI:
uei.opennms.org/external/hyperic/alert with event UEI:
uei.opennms.org/generic/traps/SNMP_Link_Down
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: TransSpec.matches: checking mappings for spec.
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: AttributeValueSpec.matches: Event attributeValue
doesn't match because attributeValue itself is null
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator]
EventTranslatorConfig: TranslationMapping.assignmentsMatch: assignmentSpec:
ifdesc doesn't match.
2008-07-10 18:03:36,490 DEBUG [OpenNMS.EventTranslator] EventTranslator:
onEvent: received event that matches no translations:
What does the line "AttributeValueSpec.matches: Event attributeValue doesn't
match because attributeValue itself is null" means?
Currently my event translation is configured as follow:
<event-translation-spec uei="
uei.opennms.org/generic/traps/SNMP_Link_Down">
<mappings>
<mapping>
<assignment type="parameter" name="ifdesc">
<value type="sql" result="select distinct snmpIfDescr from
snmpInterface where snmpIfIndex=?">
<value type="parameter" name=".1.3.6.1.2.1.2.2.1.1"
matches=".*" result="${1}" />
</value>
</assignment>
</mapping>
</mappings>
</event-translation-spec>
Regards.
--
The greatest thief in the Universe is Time.
The greatest thief in the Universe is Time.