PDA

View Full Version : Problem to send SNMP traps - missing template?


annamariah
04-23-2008, 12:23
I have created a rule named "Rule Name FN Test" that shall send SNMP traps
as action. But it seems to be some problem to find the configured template.
See below:

(OPTIMIZE) [Analytic Engine
v7.1.0.0.com.dante.analysis.action.SNMPTrapAction.UnknownKey] 2008-04-22
15:20:45.234 CEST WARN: Unable to send the requested SNMP trap for rule
named [Rule Name FN Test] as there is no template configured for template
[SNMPAlert] and alert severity section [NORMAL]

This is our "SNMPAlert Settings" in the analytic engine:

<?xml version="1.0" encoding="UTF-8"?>
<properties>
<property name="SNMPManager">
<string meta="managerName">SNMP_Manager_PRODUCTION</string>
<string meta="host">IP</string>
<integer meta="port">161</integer>
<property name="community">
<string meta="handle">User</string>
<string meta="password">********</string>
</property>
</property>
</properties>

This is our templete for SNMPAlerts in the
"optimize/analysis/conf/templates"-folder. Only two files in this folder,
SNMPAlert.template and BusinessMonitorViolation.template.

(See attached file: SNMPAlert.template)

Do anyone know what we have missed?

scottmc
07-30-2008, 14:03
Did you get this working?

anil_kumar
07-30-2008, 15:31
Hello

Solution 1:after defning your template did you deployed it and did you restarted anlaytical engine and MyWMS.If not you should do these

Solution 2:Use some network monitoring software and check to see whether data is transmitting from your system to the target

thanks
Anil

scottmc
07-30-2008, 15:59
I've defined the settings for the SNMP manager in MWS and deployed the env, but the SNMPAlert.template and the webMethods mib files are not part of the deployed environment. I have verified that they are correct, the template matches the mid, etc. I don't know why it cant find it.

As far as monitoring network traffic, the exception occurs before any sending happens. I purposely kill the IS, which causes some "failure" rules to fire. These rules are setup to send email and snmp alerts. The emails are sent OK, but the snmp alerts fail with the same message in the opening post. No snmp trap is ever attempted to be sent.

The Analytic Engine seems to store it's settings in the database in a registry type structure. I have a feeling there is an issue when loading the mib and\or template into this structure.

anil_kumar
07-31-2008, 09:02
Hello

This seems to be silly but just give it a shot .Remove special char from teh SNMP names like _ ,- etc and try giving name like snmp1 etc
it looks silly but i did the same when calling WSalert action and it worked .

And did you check the password hadle are u using the default one.If you are using the new pass handle then i think u need to define in DC infra admin page
These solutions looks silly for the error u are getting but just try and lets c how it goes

thanks
Anil

scottmc
07-31-2008, 12:10
There was an '_' in the SNMP definition, I took that out but still got the same error. There's nothing on the Infra DC to change. We're not using the snmp data collector. We're only trying to send snmp traps from the Analytic Engine when a rule is violated.

I think its a bug of some sort. It works on the QA level machine and they are exactly the same as far as I can tell.

anil_kumar
07-31-2008, 12:35
hello
earlier from your post
"As far as monitoring network traffic, the exception occurs before any sending happens. I purposely kill the IS, which causes some "failure" rules to fire."

You will be using the infra DC to identify the components and then using the analytical engine(database) you will be defining your rules and send alerts ( i think thats how it works ) .

Did you copy pasted the template thats there in the documentation with out missing any xml tags.Try this last one ,Define a custom template with out the standard one.
If not i think you should keep a SR to wMsupport may be you need some sort of fix

scottmc
08-21-2008, 14:33
There is a bug in the mail configuration that loses mail templates. This is also where the snmp template is set. Once you install Optimize for Infrastruture Fix 6, the templates are set correctly.

OPTINF_7-1_Fix6