Greetings Gurus. I have been struggling with something for nearly a week now, and finally decided to bite the bullet and ask for help.
Ultimately, on a high level, I am trying to take a description out of one of my alerts and pass it into a script as a parameter. The script is set up to ping a computer on the network (the IP address of which is contained within that alert description).
On a more detailed level, I have a monitor that is watching the application log on my biztalk servers. When a specific receive location shuts down for whatever reason (generally the pc that it exists on gets rebooted), it generates an entry in the app log, which throws a flag to my monitor and thereby triggers the alert. I have a script written that will re-enable the receive location once the pc is back up and running, but it needs to know which location to re-enable. There are multiple receive locations (and multiple machines) talking to biztalk and I need to get at that description field to pull out which one is causing the problem at that particular moment.
I have found lots of sites that refer to the 'Alert Description Variables' (i.e. $Data/Context/EventDescription$), but for whatever reason, any time I put one of those in my script, it fails. Initially I thought that it might be due to the fact that there are spaces and double quotes and other such characters in the description, but I can't get the script to work with ANY of these variables.
I *can't* be the only one that's ever run into this problem. Help!
Thanks in advance.