" /> Create alarm based on text in the log - possible? - Genesys CTI User Forum

Author Topic: Create alarm based on text in the log - possible?  (Read 2484 times)

Offline vjicecool

  • Full Member
  • ***
  • Posts: 127
  • Karma: -1
Create alarm based on text in the log - possible?
« on: December 01, 2017, 11:22:51 PM »
Advertisement
if an app writes some text in the log file, can we generate alarm for that text and send it as an email?

the text doesn't have any event assigned to it.

please advise.

thanks

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Create alarm based on text in the log - possible?
« Reply #1 on: December 01, 2017, 11:53:29 PM »
I'd do an attach data based on that log on your application (which app are we talking about?)
Then on IRD grab it and send a custom alarm


Enviado de meu E6633 usando Tapatalk


Offline vjicecool

  • Full Member
  • ***
  • Posts: 127
  • Karma: -1
Re: Create alarm based on text in the log - possible?
« Reply #2 on: December 07, 2017, 07:24:58 PM »
[quote author=cavagnaro link=topic=10779.msg49018#msg49018 date=1512172409]
I'd do an attach data based on that log on your application (which app are we talking about?)
Then on IRD grab it and send a custom alarm


Enviado de meu E6633 usando Tapatalk
[/quote]

email server application

email accounts are getting locked up.


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Create alarm based on text in the log - possible?
« Reply #3 on: December 07, 2017, 07:51:44 PM »
Locked how?
Details please, 1 line will not help, not on mind reader mode


Enviado de meu E6633 usando Tapatalk


Offline vjicecool

  • Full Member
  • ***
  • Posts: 127
  • Karma: -1
Re: Create alarm based on text in the log - possible?
« Reply #4 on: December 07, 2017, 08:43:13 PM »
[quote author=cavagnaro link=topic=10779.msg49047#msg49047 date=1512676304]
Locked how?
Details please, 1 line will not help, not on mind reader mode


Enviado de meu E6633 usando Tapatalk
[/quote]
sorry about that sir.

When Emails arrive they are in exchange.
email accounts are accessed through outlook too ( this is used as a backup just in case if genesys goes down). supervisor have  access ( account configured to their outlook). sometimes outlook asks to enter password for those accounts, many times they enter wrong password and accounts get locked out.

when an account gets locked out, esj cannot pull emails from that account. an warning/error message is printed in the logs

"Invalid login to corporate E-mail Server for username xyzabcd"

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Create alarm based on text in the log - possible?
« Reply #5 on: December 07, 2017, 08:51:14 PM »
I see
Actually is a pretty bad idea to access from another email client, this mainly because:
1. You break your flow, an email sent by Outlook is not kept on Genesys and will not be stored at UCS or have the proper treatment when sent, rules, logic will not work.
2. An email marked as read in the Inbox will not be treated by Genesys anymore. Will be left there, again, breaking the user interaction flow.

You can configure a simple alter in SCI based on that event. Check the lms file at ESJ installation folder and check the forum on how to create this alert or framework documentation. Quite simple actually.

In case Genesys ESJ is down better investigate the root...I have never seen that to happen in a production environment, only when the server goes down totally but still emails are not that critical usually. Or maybe have a HA solution. Avoiding Outlook access will be a much nicer solution.


Enviado de meu E6633 usando Tapatalk


Offline vjicecool

  • Full Member
  • ***
  • Posts: 127
  • Karma: -1
Re: Create alarm based on text in the log - possible?
« Reply #6 on: December 07, 2017, 10:17:21 PM »


below is the error message in the log file
is the event "STD20013" where we need to create alert for?

13:27:25.232 Std 20013 [MsgIn-1] <pop-client_NT> Invalid login to corporate E-mail Server for username NT.
javax.mail.AuthenticationFailedException: The request failed. The request failed. Connection reset
at org.sourceforge.net.javamail4ews.util.Util.getExchangeService(Util.java:182)
at org.sourceforge.net.javamail4ews.store.EwsStore.protocolConnect(EwsStore.java:46)
at javax.mail.Service.connect(Service.java:381)
at com.genesyslab.icc.emailserver.MailDeliveryAgentImpl.openConnection(MailDeliveryAgentImpl.java:260)
at com.genesyslab.icc.emailserver.MailDeliveryAgentExchange.openConnection(MailDeliveryAgentExchange.java:60)
at com.genesyslab.icc.emailserver.InboundMessagingClient$SessionRunLoop.retrieveMessages(InboundMessagingClient.java:1121)
at com.genesyslab.icc.emailserver.InboundMessagingClient$SessionRunLoop.run(InboundMessagingClient.java:993)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.genesyslab.util.concurrent16.NamedThreadFactory$1.run(NamedThreadFactory.java:55)
at java.lang.Thread.run(Thread.java:745)


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Create alarm based on text in the log - possible?
« Reply #7 on: December 07, 2017, 10:31:59 PM »
At 20013 message id


Enviado de meu E6633 usando Tapatalk

Offline vjicecool

  • Full Member
  • ***
  • Posts: 127
  • Karma: -1
Re: Create alarm based on text in the log - possible?
« Reply #8 on: December 07, 2017, 10:43:29 PM »
thank you very much