Giter VIP home page Giter VIP logo

dynatrace-appmon-powershell's Introduction

Dynatrace-Powershell

This repository contains a set of PowerShell scripts and -modules to automate Dynatrace AppMon deployments on Microsoft Windows and Azure.

##Features ###Agents

  • Install, Uninstall and Re-Configure without running the installer.
  • .NET Agent, Webserver Agent for IIS 7+ (Slave), Webserver Agent Service (Master)
  • Windows Server 2008+, Azure Cloud-Service WebRole and WorkerRole

##Folders ###/modules/ A set of functionality to build up automation scripts around dynatrace.

For further information see documentation within the modules

###/scripts/ Contains blueprint scripts covering common use-cases:

  • InstallAgentsInAzureWebRole.ps1 Installs .NET and IIS agents in Microsoft Azure Cloud-Service WebRole. For a detailed tutorial see How to deploy Dynatrace Agents in MS Azure Cloud-Service
  • InstallAgentsInAzureWorkerRole.ps1 Installs .NET agent in a Microsoft Azure Cloud-Service WorkerRole.For a detailed tutorial see How to deploy Dynatrace Agents in MS Azure Cloud-Service
  • InstallDotNetAgent.ps1 Enables Dynatrace .NET agent.
  • InstallWSAgentModuleIIS.ps1 Enables Dynatrace Webserver (slave) agent in IIS as a native module
  • InstallWSAgentService.ps1 Installs Dynatrace (master) Webserver Agent as Windows Service.
  • InstallMSI.ps1 Extracts files from an MSI-installer without executing the installer.

For detailed infos on parameters, see the documentation within the scripts

License

Dynatrace BSD analytics

dynatrace-appmon-powershell's People

Contributors

dtpath avatar gabrielprioli avatar ingohackl avatar metmajer avatar olljanat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynatrace-appmon-powershell's Issues

InstallDotNetAgent.ps1

Hi Team,

I think there is a bug in InstallDotNetAgent.ps1. Indeed you check if req equals 0 and just after you check if req is equals to 1.

I think in the first if it's -ne no ?

Thanks,
Alex

$res = Test-DotNETAgentInstallation
if ($res -eq 0)
{
if ($res -eq 1)

Use MSI installer instead of extract

@dtPaTh / @ingohackl, Is either or you working on Dynatrace?

I don't understand that why you are breaking your own company code by just extracting MSI packages instead of fix the original packages that they would create service, IIS modules, etc without version numbers?

Using MSI installer helps of a lot to keep track which servers Dynatrace agent is installed.

For your information I just uploaded my own scripts to here which are actually using MSI installer and doing some other performance tuning stuff what you don't have here.

$ServiceName = "Dynatrace Webserver Agent" ??

Hi Team,

We are running Dynatrace 6.1.3 and it seems the agent name is now "dynaTrace Web Server Agent 6.1.0" and not anymore : "Dynatrace Webserver Agent"

So it doesn't create/restart the good service.

What do you think ?
Thanks,
Alex

"operator is reserved for future use" issues

I don't see OS or Powershell version compatibility requirements on the readme. Just states IIS 7+ and Server 2008+.

System Info:
OS: Windows Server 2016 Standard
PS Version: 5.1.14393.1770

Trying to run the "InstallDotNetAgent.ps1" and I'm receiving the following errors about operators being reserved for future use.

At C:\temp\modules\Util.psm1:253 char:234
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\Util.psm1:301 char:297
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\Util.psm1:336 char:92
+ ... ss="description">Be notified when participating or @mentioned.</span>
+                                                                   ~
Missing property name after reference operator.
At C:\temp\modules\Util.psm1:336 char:92
+ ... ss="description">Be notified when participating or @mentioned.</span>
+                                                                   ~
The '<' operator is reserved for future use.
At C:\temp\modules\Util.psm1:396 char:275
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\Util.psm1:410 char:10
+ </form>  </div>
+          ~
The '<' operator is reserved for future use.
At C:\temp\modules\Util.psm1:610 char:315
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\Util.psm1:615 char:16
+ </form>        <!-- '"` --><!-- </textarea></xmp> --></option></form> ...
+                ~
The '<' operator is reserved for future use.
At C:\temp\modules\Util.psm1:1082 char:227
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\Util.psm1:1085 char:10
+ </form>  </div>
+          ~
The '<' operator is reserved for future use.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed

Import-Module : The specified module '../modules/Util' was not loaded because no valid module file was found in any
module directory.
At C:\temp\scripts\InstallDotNetAgent.ps1:39 char:1
+ Import-Module "../modules/Util"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (../modules/Util:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

At C:\temp\modules\InstallDotNETAgent.psm1:253 char:234
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\InstallDotNETAgent.psm1:301 char:297
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\InstallDotNETAgent.psm1:336 char:92
+ ... ss="description">Be notified when participating or @mentioned.</span>
+                                                                   ~
Missing property name after reference operator.
At C:\temp\modules\InstallDotNETAgent.psm1:336 char:92
+ ... ss="description">Be notified when participating or @mentioned.</span>
+                                                                   ~
The '<' operator is reserved for future use.
At C:\temp\modules\InstallDotNETAgent.psm1:396 char:275
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\InstallDotNETAgent.psm1:410 char:10
+ </form>  </div>
+          ~
The '<' operator is reserved for future use.
At C:\temp\modules\InstallDotNETAgent.psm1:610 char:329
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\InstallDotNETAgent.psm1:615 char:16
+ </form>        <!-- '"` --><!-- </textarea></xmp> --></option></form> ...
+                ~
The '<' operator is reserved for future use.
At C:\temp\modules\InstallDotNETAgent.psm1:1308 char:227
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\temp\modules\InstallDotNETAgent.psm1:1311 char:10
+ </form>  </div>
+          ~
The '<' operator is reserved for future use.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed

Import-Module : The specified module '../modules/InstallDotNETAgent' was not loaded because no valid module file was
found in any module directory.
At C:\temp\scripts\InstallDotNetAgent.ps1:40 char:1
+ Import-Module "../modules/InstallDotNETAgent"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (../modules/InstallDotNETAgent:String) [Import-Module], FileNotFoun
   dException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Test-DotNETAgentInstallation : The term 'Test-DotNETAgentInstallation' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At C:\temp\scripts\InstallDotNetAgent.ps1:45 char:8
+ $res = Test-DotNETAgentInstallation
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Test-DotNETAgentInstallation:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

InstallDotNetAgent script

Looking at the installDotNetAgent scripts, I'm not actually seeing where the agent is installed. There looks like an assumption is being made that the actual msi is already done. For clarity's sake, can we rename this to "configureDotNetAgent"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.