Discussion:
[opennms-discuss] Event translation log entries - what do they mean?
CapTylor
2008-07-10 10:23:37 UTC
Permalink
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.
--
The greatest thief in the Universe is Time.
光年张
2008-07-11 09:19:43 UTC
Permalink
Hi,

AttributeValueSpec.matches: Event attributeValue doesn't match because
attributeValue itself is null
means there is no parameter named ".1.3.6.1.2.1.2.2.1.1".
As I know, the OID of the parameters of the Link Down trap is not fixed.
for example, here are the varbind values of a Link Down trap
.1.3.6.1.2.1.2.2.1.1.10103="10103"
.1.3.6.1.2.1.2.2.1.2.10103="GigabitEthernet1/0/3."
.1.3.6.1.2.1.2.2.1.3.10103="6"
.1.3.6.1.4.1.9.2.2.1.1.20.10103="down."
The parameter's name of the ifIndex is always ".1.3.6.1.2.1.2.2.1.1.+ the
value of ifindex"
Post by CapTylor
Hi,
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]
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]
ifdesc doesn't match.
What does the line "AttributeValueSpec.matches: Event attributeValue
doesn't match because attributeValue itself is null" means?
<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.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Loading...