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

This is not the latest version of New Relic .NET Agent available.

New Relic .NET Agent

8.2.216.0

Package test results are passing.

This package was approved as a trusted package on 5/16/2018.

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 --version 8.2.216.0

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

C:\> choco upgrade newrelic-dotnet --version 8.2.216.0

Files

Hide
  • tools\chocolateyUninstall.ps1 Show
    $package = 'newrelic-dotnet' # arbitrary name for the package, used in messages
    $ProductCode_x86 = '{36E0DBC9-AF64-4FC0-BDB7-AC2EE2D54ACC}'
    $ProductCode_x64 = '{66882D6E-AD3B-41EB-93A1-F2FA323DA0DC}'
    
    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/
  • 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.2.216.0.msi";
      file64         = "$launch_path\..\binaries\newrelic-agent-win-x64-8.2.216.0.msi";
      checksum       = '7AFEE561C53EEEA8161D307A085968F24E45A0731C4B5456552F549AE3DC1B06'
      checksumType   = 'sha256'
      checksum64     = 'AD4F349AF118B5B1900D4218E6727E3E2B74800EE46E05045BE9986F6251B77E'
      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
    }
    
  • License.txt Show
    ----------------------------------------------------------------
    
    This product includes 'Autofac' (https://autofac.org/), which is released under the following license(s):
        MIT <https://github.com/autofac/Autofac/blob/master/LICENSE>
    
    ----------------------------------------------------------------
    
    This product includes 'Castle.Windsor' (http://www.castleproject.org/), which is released under the following license(s):
        Apache License, Version 2.0 <http://opensource.org/licenses/Apache-2.0>
    
    ----------------------------------------------------------------
    
    This product includes 'Dongle.Net' (https://github.com/webbers/dongle.net), which is released under the following license(s):
        MIT <https://github.com/webbers/dongle.net/blob/master/MIT-LICENSE.txt>
    
    ----------------------------------------------------------------
    
    This product includes 'JetBrains.Annotations' (https://www.nuget.org/packages/JetBrains.Annotations), which is released under the following license(s):
        MIT <https://raw.githubusercontent.com/JetBrains/ExternalAnnotations/master/LICENSE.md>
    
    ----------------------------------------------------------------
    
    This product includes 'Log4net' (http://logging.apache.org/log4net), which is released under the following license(s):
        Apache Version 2.0 <http://logging.apache.org/log4net/license.html>
    
    ----------------------------------------------------------------
    
    This product includes 'MongoDB Driver for .NET' (https://github.com/mongodb/mongo-csharp-driver), which is released under the following license(s):
        Apache License, Version 2.0 <https://github.com/mongodb/mongo-csharp-driver/blob/master/License.txt>
    
    ----------------------------------------------------------------
    
    This product includes 'Newtonsoft.Json' (https://www.nuget.org/packages/Newtonsoft.Json/), which is released under the following license(s):
        MIT <https://raw.githubusercontent.com/JamesNK/Newtonsoft.Json/master/LICENSE.md>
    
    ----------------------------------------------------------------
    
    This product includes 'RapidXml' (http://rapidxml.sourceforge.net/), which is released under the following license(s):
        MIT <http://rapidxml.sourceforge.net/license.txt>
    
    ----------------------------------------------------------------
    
    This product includes 'SharpZLib' (http://www.icsharpcode.net/opensource/sharpziplib), which is released under the following license(s):
        GNU Classpath <https://github.com/icsharpcode/SharpZipLib/blob/master/LICENSE.txt>
    
    ----------------------------------------------------------------
    
    This product includes 'SystemWrapper' (http://systemwrapper.codeplex.com/), which is released under the following license(s):
        Microsoft Public License <http://systemwrapper.codeplex.com/license>
    
    ----------------------------------------------------------------
    
    All other components of this product are: Copyright (c) 2010-2018 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.
    
  • binaries\newrelic-agent-win-x86-8.2.216.0.msi Show
    md5: 29FE76C2D99A3CF2984FA1B1E5EC08A1 | sha1: 89B9265F152AA2FCF21D3A781FEE48DF5D8F72E6 | sha256: 7AFEE561C53EEEA8161D307A085968F24E45A0731C4B5456552F549AE3DC1B06 | sha512: 1535D83CB61F94F67D77CB3CDB47EFCD558F8A372D0B0908DF9AA7373D8ABA8BF3F1A3E1A886B44EA117520E765812614EF8813A5AA007C2220016855D4035B0
  • binaries\newrelic-agent-win-x64-8.2.216.0.msi Show
    md5: 629A49FC3DDA38FA13A1E8EDF68D807D | sha1: 396249B03A42A6D0F880EA9F4AE300BFEC7D9123 | sha256: AD4F349AF118B5B1900D4218E6727E3E2B74800EE46E05045BE9986F6251B77E | sha512: 287722C61855A1DFAC6160C9500592763FA1C89A2DE733A65D71972BAEF2F2606E98F620397AC201EC90BF8F734EA6C3AE947C0CE38985666B84FC50F82FDC67

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-822160

Version History

Version Downloads Last updated Status
New Relic .NET Agent 8.13.798.0 1468 Tuesday, February 12, 2019 approved
New Relic .NET Agent 8.12.216.0 642 Thursday, January 10, 2019 approved
New Relic .NET Agent 8.11.157.0 610 Monday, December 17, 2018 approved
New Relic .NET Agent 8.10.51.0 631 Friday, November 30, 2018 approved
New Relic .NET Agent 8.9.130.0 762 Thursday, November 15, 2018 approved
New Relic .NET Agent 8.8.83.0 1868 Wednesday, October 17, 2018 approved
New Relic .NET Agent 8.7.75.0 796 Wednesday, October 3, 2018 approved
New Relic .NET Agent 8.6.45.0 2230 Tuesday, August 28, 2018 approved
New Relic .NET Agent 8.5.186.0 779 Thursday, August 16, 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