Notices: This section not yet converted to new layout. Download stats are rolling back out.

New Relic .NET Agent

8.17.438.0

Package test results are passing.

This package was approved as a trusted package on 7/22/2019.

New Relic .NET Agent that allows you to monitor your .NET application. Package has following parameters:

--params "'license_key=YOUR_LICENSE_KEY'" # Specify Your NewRelic license key
--params "'restartiis=true'" # (Optional) Stop IIS service, install package, start IIS after.
--params "'license_key=YOUR_LICENSE_KEY;restartiis=true'" # Specify License key and handle IIS restarts.

To install New Relic .NET Agent, run the following command from the command line or from PowerShell:

C:\> choco install newrelic-dotnet

To upgrade New Relic .NET Agent, run the following command from the command line or from PowerShell:

C:\> choco upgrade newrelic-dotnet

Files

Hide
  • binaries\newrelic-agent-win-x64-8.17.438.0.msi Show
    md5: 1244C965467D62FA772FDA9D0A969A5B | sha1: 5444C5561F328134214A4DACF0C6BFAE26F64E50 | sha256: FC955B69958ACB5009A70917141D8F809A023C0BA75626DE57A0E776CF02455A | sha512: AF921E2B8F2BBD7F7C7DC10AB1F7D626761F178369DE43B2E39BD8416388DAC7C43F547C50B4140276E225F9110B34592C3922CF678275D828A4F071D4EAA17A
  • binaries\newrelic-agent-win-x86-8.17.438.0.msi Show
    md5: 649713437BB8B60B778B535F0B7022A4 | sha1: 0563573D3C737DE5B8AA6C4CCE50BA31A0EF6850 | sha256: B524E24F249B1F67E105BBAF9C063E2119A334B394B061361F9D1AB64DAD5123 | sha512: A08D57FEC22546E54906D5317E2B4D8D16B7DE0D547B2FCB5B5FBB74FE74FA88F44DC3F7C3E5A1F63B2E3B768C6B5498E6D552DA19B2BAEBD74933C98508CFF0
  • LICENSE.txt Show
    Copyright (c) 2008-2019 New Relic, Inc.  All rights reserved.
    
    Certain inventions disclosed in this file may be claimed within
    patents owned or patent applications filed by New Relic, Inc. or third
    parties.
    
    Subject to the terms of this notice, New Relic grants you a
    nonexclusive, nontransferable license, without the right to
    sublicense, to (a) install and execute one copy of these files on any
    number of workstations owned or controlled by you and (b) distribute
    verbatim copies of these files to third parties.  As a condition to the
    foregoing grant, you must provide this notice along with each copy you
    distribute and you must not remove, alter, or obscure this notice. All
    other use, reproduction, modification, distribution, or other
    exploitation of these files is strictly prohibited, except as may be set
    forth in a separate written license agreement between you and New
    Relic.  The terms of any such license agreement will control over this
    notice.  The license stated above will be automatically terminated and
    revoked if you exceed its scope or violate any of the terms of this
    notice.
    
    This License does not grant permission to use the trade names,
    trademarks, service marks, or product names of New Relic, except as
    required for reasonable and customary use in describing the origin of
    this file and reproducing the content of this notice.  You may not
    mark or brand this file with any trade name, trademarks, service
    marks, or product names other than the original brand (if any)
    provided by New Relic.
    
    Unless otherwise expressly agreed by New Relic in a separate written
    license agreement, these files are provided AS IS, WITHOUT WARRANTY OF
    ANY KIND, including without any implied warranties of MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NON-INFRINGEMENT.  As a
    condition to your use of these files, you are solely responsible for
    such use. New Relic will have no liability to you for direct,
    indirect, consequential, incidental, special, or punitive damages or
    for lost profits or data.
    
  • tools\chocolateyInstall.ps1 Show
    $package = 'newrelic-dotnet'
    
    $launch_path = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    
    $choco_params = @{
      PackageName = $package;
      FileType       = 'msi';
      SilentArgs     = '/qb INSTALLLEVEL=50'
      file           = "$launch_path\..\binaries\newrelic-agent-win-x86-8.17.438.0.msi";
      file64         = "$launch_path\..\binaries\newrelic-agent-win-x64-8.17.438.0.msi";
      checksum       = 'B524E24F249B1F67E105BBAF9C063E2119A334B394B061361F9D1AB64DAD5123'
      checksumType   = 'sha256'
      checksum64     = 'FC955B69958ACB5009A70917141D8F809A023C0BA75626DE57A0E776CF02455A'
      checksumType64 = 'sha256'
      ValidExitCodes = @(0)
    }
    $restartiis = $false
    
    if (![string]::IsNullOrEmpty($env:chocolateyPackageParameters))
    {
      if ($env:chocolateyPackageParameters.ToLower().Contains("restartiis") -or $env:chocolateyPackageParameters.ToLower().Contains("license_key"))
      {    
        # Getting Parameters
        $rawTxt =  [regex]::escape($env:chocolateyPackageParameters)
        $params = $($rawTxt -split ';' | ForEach-Object {
          $temp= $_ -split '='
          "{0}={1}" -f $temp[0].Substring(0,$temp[0].Length),$temp[1]
        } | ConvertFrom-StringData)
    
        if ($params.restartiis -eq 'true')
        {      
          Write-Host "Found 'restartiis' parameter enabled."
          $restartiis = $true
        }
        else
        {
          $restartiis = $false
        }
        
        if (![string]::IsNullOrEmpty($params.license_key))
        {        
          # Passing License key
          $choco_params['SilentArgs'] = $choco_params['SilentArgs'] + " NR_LICENSE_KEY=" + $params.license_key      
        }
        else
        {
          Write-Warning "No New Relic license key specified. Please use -params 'license_key=<newrelic_key>' or alternatively specify it manually after installation."
        }
      }
      else
      {
        Write-Warning "No New Relic license key specified. Please use -params 'license_key=<newrelic_key>' or alternatively specify it manually after installation."
      }
    }
    else
    {
      Write-Warning "No New Relic license key specified. Please use -params 'license_key=<newrelic_key>' or alternatively specify it manually after installation."
    }
    
    try { #error handling is only necessary if you need to do anything in addition to/instead of the main helpers
      
      if ($restartiis)
      {
        # Stop IIS before installing
        $ServiceName = "W3SVC"
        $service = Get-Service "$ServiceName" -ErrorAction SilentlyContinue
        if ($service -ne $null)
        {
          
            Write-Host $($ServiceName + " service will be stopped")
    
            Stop-Service $ServiceName
             
            Write-Output "Sleeping for $sleep_timeout seconds"  
            
            $i = 0
            while (!(Get-Service $ServiceName | Where-Object {$_.status -eq "stopped"}))
            {  
              
              Write-Output "Waiting for ${ServiceName} to be stopped"    
              if ($i -gt $sleep_timeout)
              {
                throw "Can't wait for ${ServiceName} to be stopped. Took longer than ${sleep_timeout}s: Timeout"
              }
              Write-Output "[$i]"
              Start-Sleep -s 1
              $i++
            }
            Write-Output "${ServiceName} is stopped. Continue."
            
            Install-ChocolateyPackage @choco_params
            
            Write-Host "Configuring $ServiceName to autostart"
            
            Set-Service $ServiceName -startuptype "auto"
            
            Write-Host $("Starting "+$ServiceName+" service")
            Start-Service $ServiceName
        }
        else
        {  
          Write-Output "No ${ServiceName} service found. Nothing to restart. Continue."
          Install-ChocolateyPackage @choco_params
        }
      }
      else
      {  
        Write-Warning "IIS will not be restarted. Please do so manually. In order to stop & start IIS automatically use parameter: -params 'restartiis=true'. "    
        Install-ChocolateyPackage @choco_params
      }
      
    } catch {
      Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
      throw
    }
    
  • tools\chocolateyUninstall.ps1 Show
    $package = 'newrelic-dotnet' # arbitrary name for the package, used in messages
    $ProductCode_x86 = '{A573E3E3-0645-407C-969A-3733F4DE3FED}'
    $ProductCode_x64 = '{BFB96336-C328-443D-B342-960D6CF1BF1A}'
    
    if( `
      (Test-Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x86") -or `
      (Test-Path "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x86") `
    ){
      try {
        # http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
        $msiArgs = "/X $ProductCode_x86 /qb"
      
        Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec'
    
        Write-ChocolateySuccess $package
      } catch {
        Write-ChocolateyFailure $package "$($_.Exception.Message)"
        throw
      }
    }
    
    if( `
      (Test-Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x64") -or `
      (Test-Path "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x64") `
    ){
      try {
        # http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
        $msiArgs = "/X $ProductCode_x64 /qb"
    
        Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec'
    
        Write-ChocolateySuccess $package
      } catch {
        Write-ChocolateyFailure $package "$($_.Exception.Message)"
        throw
      }
    }
    
  • tools\VERIFICATION.txt Show
    VERIFICATION
    Verification is intended to assist the Chocolatey moderators and community
    in verifying that this package's contents are trustworthy.
     
    This package is published by NewRelic itself. The binaries are 
    identical to the published by NewRelic. Which can be seen at
    https://download.newrelic.com/dot_net_agent/release/

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • NewRelic

Copyright

https://www.newrelic.com

Tags

Release Notes

https://docs.newrelic.com/docs/release-notes/agent-release-notes/net-release-notes/net-agent-8174380

Version History

Version Downloads Last updated Status
New Relic .NET Agent 8.16.567.0 1875 Tuesday, June 11, 2019 approved
New Relic .NET Agent 8.15.455.0 1462 Monday, April 22, 2019 approved
New Relic .NET Agent 8.14.222.0 808 Tuesday, March 19, 2019 approved
New Relic .NET Agent 8.13.798.0 1614 Tuesday, February 12, 2019 approved
New Relic .NET Agent 8.12.216.0 663 Thursday, January 10, 2019 approved
New Relic .NET Agent 8.11.157.0 664 Monday, December 17, 2018 approved
New Relic .NET Agent 8.10.51.0 742 Friday, November 30, 2018 approved
New Relic .NET Agent 8.9.130.0 790 Thursday, November 15, 2018 approved
New Relic .NET Agent 8.8.83.0 1891 Wednesday, October 17, 2018 approved
Show More

Discussion for the New Relic .NET Agent Package

Ground rules:

  • This discussion is only about New Relic .NET Agent and the New Relic .NET Agent package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or New Relic .NET Agent, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok