cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using TTS sound alerts on AppMon for NOC purposes

thiago_campos1
Participant

One of our customers has requested to create sound alerts for their monitoring center, which consumes the Dynatrace Appmon tool.

So to attend this request, I've created a script that sends via Psexec a remote command for the NOC server to read written messages by doing Text-To-Speech. so, it was possible to create alerts based on customized messages for each alerts, without the need to create sound files.

You need the following in order to get this working:


  • Create a account that has permission to do remote commands to the target machine
  • Use PSEXEC command ( Permissions )
  • Activate the voice recognition ( Windows, Linux)
  • Use a script that plays the message by command line
  • Use Generic execution Plugin

Links:

Using PSExec Tool:

https://blogs.technet.microsoft.com/systemcenteres...

The following example script, plays the remote command on windows machines, as follows:

@echo off 
set arg1=%1


#:\path\psexec -i \\target ip address -u domain\user -p password mshta vbscript:Execute("CreateObject(""SAPI.SpVoice"").Speak("%arg1%")(window.close)") /accepteula

Just fill target address, user and password.

This file must be on your Dynatrace Server because of Generic execution plugin. The actions are send only by the server.

Then, In AppMon, you must configure an action for the incident, by using generic execution plugin:

Then, the computer will tell you which alert is. You can use variables like [host], for example.

Thank you !

3 REPLIES 3

Joe_Hoffman
Dynatrace Champion
Dynatrace Champion

Very cool idea.

Thanks Joseph!

luciano_malagr1
Newcomer

Welll Done!