Answer by Naveen S. ·
Hi Everyone,
I am using Generic Execution Plugin v5.5.0 as an action to trigger .vbs file and .bat file when incident occurs, but it is not working in any of the cases. Both the files were designed to write a simple log entry in the 'Event Log' as below.
testvb.vbs
Const EVENT_SUCCESS = 0
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_SUCCESS, _ "DT Application successfully tested."
testing.bat
eventcreate /t information /id 888 /l application /so TaskScheduler /d "This is the test action from DT"
Environment:
Below are the setups I have in dynaTrace incident action and it is not at all turning to be a luck factor. Can any one please review and instruct if am missing any configs or misleading anywhere.
NOTE: When I try running the same commands in Monitor, it works perfectly and returns result as well.
2.
Answer by Andreas G. ·
Are you sure the incident gets triggered? If so - can you look in the dynatrace server log file and see if there is any error log message?
Answer by Naveen S. ·
Hi,
Thanks for your response!
Yes, incident is triggered. I have another action - SNMP Action Plugin to it which throws this error to the monitoring SNMPutil where I can see this incident.
And now I have downgraded this Generic Execution Plugin to v3.1 in which the scripts worked out and I can able to see the output of the batch file.
Now I got another doubt, how can I run the batch or vbscript or exe file in the remote machine/server. We have an exe in one of the machine which needs to be triggered when one specific incident occurs.
Any inputs on this please. Also if you could provide me the workaround for the action to work in GEP v.5.5 would be very great?
Answer by Andreas G. ·
I will ping the author of the plugin and see what he has to say. It is a community plugin and not officially supported by dynaTrace.
As for remote execution. If you google for remote batch execution you find several hints on how to do this on windows,e .g: http://social.technet.microsoft.com/Forums/scriptcenter/en-US/732495c0-114c-4a1e-bbe1-5a7a3b84012d/execute-a-batch-file-on-a-remote-pc?forum=ITCG
Answer by Naveen S. ·
Hi Eugene,
Thanks for your response. Still no luck, I have downloaded the latest version of GEP 5.5.7.1 and tried with that. But then, the command works in Monitor but not as Action.
Below is the setting I gave in both Monitor and Action.
Hi Naveen,
There are following steps that I'd like you to do:
Eugene.
Answer by Naveen S. ·
Eugene,
No luck, I have tried the step 1 & 2, not 3 as I could not download the file.
As you said I have given redirection and tried but still nothing happened in the server. I believe the Action itself is not triggered when incident happens.
Even if I give just the ping 127.0.0.1 > op.txt, it doesn't looks to be working. so I believe there is not issue in exectuing batch or vbs file, it is about action triggering issue. I will check on my side fully and as well if you know any reason for this please share me, so that I can check that.
N.B I could not see any logs written in this plugin's log file.
Thanks!
Hi Naveen,
Version of the GE Plugin that you have must produce log file if plugin was triggered by the incident. If you do not see logs then or incident was not triggered or the GE Plugin v. 5.5.7.2 was not installed properly. Let's setup webex that I can check your environment.
I'm busy this week but will have time mid next week. Please provide your availability.
Eugene.
Answer by Naveen S. ·
Hi Eugene,
I am happy to have webex at anytime next week. Can you please send me the details to naveen.kumar.srinivasan@bnymellon.com.
Thanks.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET