The perfect solution would be the following notification powershell script. You simply create the script in the path C:\Program Files (x86)\PRTG Network Monitor\Notifications\EXE and create a new notification for it.
The parameters should be configured like this:
-TargetComputer 'COMPUTER123' -Device '%device' -Name '%name' -Status '%status' -Message '%message'
Replace the COMPUTER123 with what ever client should play the sound - in our case this is the workstation that shows the MAPs on a TV and the sound actually comes out of the TV.
You might need to enable remote power shell execution on the target system, a hint for this is the following command:
Enable-PSRemoting -Force
Here is the script file:
Name: PRTGtoWorkstationText2Speach.ps1
#By Florian Rossmark
Param(
[string]$TargetComputer,
[string]$Device,
[string]$Name,
[string]$Status,
[string]$Message
)
$TextMessage = "$($Device) $($Name) is $($Status) $($Message)"
Invoke-Command -ComputerName $TargetComputer -ScriptBlock {
$TextMessage = $args[0]
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.Rate = -2
$speak.Speak($TextMessage)
} -ArgumentList $TextMessage
Add comment