• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home
  • Public Forums
  • Application Monitoring & UEM
  • AppMon & UEM Open Q&A
avatar image
Question by Naveen S. · Aug 22, 2014 at 09:29 PM ·

Generic Execution Plugin and Batch, VBScript, Exe

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

10 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Naveen S. · Aug 22, 2014 at 09:52 PM

 

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:

  • I have my DT Server and DT Collector in same machine.
  • Given full control rights to that c:\tmp folder for 'LocalService' account as DT server runs on it.
  • DT Collector also runs on same account - Local Service.
  • I have another action - SNMP Plugin in the same incident which works fine.


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.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Naveen S. · Aug 27, 2014 at 04:27 PM

 

Hello everyone

Anyboby please help me, also I need to execute command remotely. How can I do that in windows 2008/2003 server.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Aug 27, 2014 at 05:44 PM

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?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Naveen S. · Aug 27, 2014 at 06:05 PM

 

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?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Aug 27, 2014 at 06:20 PM

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

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Naveen S. · Aug 27, 2014 at 06:52 PM

 

Thanks, I will check this link and await for response from them as well.

Comment

People who like this

0 Show 2 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Eugene T. · Aug 27, 2014 at 08:12 PM 0
Share

Could you please upgrade the GE Plugin to the latest version and re-run your test? Let me know if you have any issues.

Eugene.

 

 

avatar image Eugene T. · Aug 29, 2014 at 09:00 AM 0
Share

Hi Naveen,

Any updates? I'd like to make sure that you have no issues with the GE Plugin. Were you able to install the latest version of the plugin and execute it successfully? Please let me know.

Eugene.

avatar image

Answer by Naveen S. · Aug 29, 2014 at 10:33 PM

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.

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Eugene T. · Aug 29, 2014 at 11:47 PM 0
Share

Hi Naveen,

There are following steps that I'd like you to do:

  1. Please check if user which is running dynaTrace server process has permissions to execute your script. When plugin is a monitor, your script is executed as a part of the Collector process, when plugin is an action your script is executed as a part of the dynaTrace Server process.  
  2. Please add redirection of stderr to stdout that your command will look like "c:\tempdel.bat 2>&1". Keep the "Capture Output" parameter on.
  3. Please download the following version 5.5.7.2 of the plugin from here and deploy it on the dynaTrace server. It is identical to the version of the plugin from the Community Portal site but has additional debugging output. Please set FINER level of debugging for the plugin and execute your test when plugin is an action. Send me plugin's log file which is located under <dt-home>\log\server directory.

Eugene. 

avatar image

Answer by Naveen S. · Sep 02, 2014 at 05:20 PM

 

Hi Eugene,

Thanks for the guidance. I was busy with another works yesterday and I coudn't check out this.

I will check this today and let you know.

Cheers!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Naveen S. · Sep 02, 2014 at 06:02 PM

 

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!

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Eugene T. · Sep 02, 2014 at 09:23 PM 0
Share

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.

avatar image

Answer by Naveen S. · Sep 06, 2014 at 03:01 AM

 

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.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A