cancel
Showing results for 
Search instead for 
Did you mean: 

Alert rule not working

Former Member
0 Kudos

Hello erveryone,

I tried to implement a simple alert that sends an e-mail to me as soon as there are some issues with a specific business system. I set up an alert rule in integration builder, assigned the business system and set the alert consumer to ALERT-TO-MAIL. In NetWaever Administrator I created a job running every 6 minutes (AlertConsumerJob).

Instead of sending an e-mail after an error occured, it just returns -1 with the following exception:

com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Path to object does not exist. First missing component is [jms], the whole lookup name is [jmsqueues/alertingVP/jms/queue/xi/monitoring/alert/ALERT-TO-MAIL].


After searching in SCN a bit, I found this to be the normal behaviour if no alerts have been created. How can I find out if my alert rule is working properly?


We are using PI 7.31 double stack.


Thanks in advance and kind regards,


Moritz

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Moritz,

Was your problem solved? Could you please let me know how?

Thanks,

Ravi

Former Member
0 Kudos

Hi Ravi,

yes, my problem was solved. I tried getting an alert by messing around with the receiver determination but it seems that in these cases no alert is being thrown. With more "severe" errors I received e-mails.

Greetings,

Moritz

Former Member
0 Kudos

Thanks for your reply Moritz. I will try tweaking my objects too.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

>> How can I find out if my alert rule is working properly?

Fail one message for that interface and then check if ur alert rule is getting triggered or not?

BTW, u can also use ALERTRetrieveAPI to check if alert is generating or not?

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi,

I failed a message and no alert is triggered. Can you tell me how to use ALERTRetrieveAPI or send me a link?

Thanks,

Moritz

Former Member
0 Kudos

Hello,

Check this: go to WSNavigator -> search for AlertRet*** service -> provide consumer name and check if any alerts are generated

Alerting API on Alert Engine - Administering Process Integration (PI) - SAP Library

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi,

I found 3 services:

2x AlertRetrieveAPI

1x AlertRetrieveAPI_V2

The first ones had the status "Consumer queue is not available: ALERT-TO-MAIL", the API_V2 had the status "null destination.", so I assume there has been no alert?

Thanks,

Moritz

Former Member
0 Kudos

Hello,

>>so I assume there has been no alert?

I think so.

I cross checked this standard consumer by adding it in one of my existing alert rule and then using AlertRetrieveAPI i query the same and it was working fine (alerts are generated in Alert-To*** consumer queue)

BTW, in ur alert rule u have added Iflow or ICO object?  If i am not wrong there are some issues when u assign ICO objects directly inside alert rule, so i would suggest you to add Iflow inside alert rule and then fail ur interface and query alerts using above API (just FYI, in consumer id u have to provide ALERT-TO-MAIL)

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi,

I added the business system directly:

I will try out iFlow and let you know if it worked!

Thanks,

Moritz