Downloads:

78,483

Downloads of v 7.0.2.0:

13,426

Last Update:

1/23/2018

Package Maintainer(s):

Software Author(s):

  • NewRelic

Tags:

newrelic-dotnet NewRelic dotnet .Net

New Relic .NET Agent

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

7.0.2.0 | Updated: 1/23/2018

Downloads:

78,483

Downloads of v 7.0.2.0:

13,426

Software Author(s):

  • NewRelic

New Relic .NET Agent 7.0.2.0

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

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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

>

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

>

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

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade newrelic-dotnet -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade newrelic-dotnet -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure newrelic-dotnet installed
  win_chocolatey:
    name: newrelic-dotnet
    state: present
    version: 7.0.2.0
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'newrelic-dotnet' do
  action    :install
  version  '7.0.2.0'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: newrelic-dotnet,
    Version: 7.0.2.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller newrelic-dotnet
{
   Name     = 'newrelic-dotnet'
   Ensure   = 'Present'
   Version  = '7.0.2.0'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'newrelic-dotnet':
  provider => 'chocolatey',
  ensure   => '7.0.2.0',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install newrelic-dotnet version="7.0.2.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 1/23/2018.

Description

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.

binaries\NewRelicAgent_x64_7.0.2.0.msi
md5: E364AAF242831C34A79C73D47C9E3D97 | sha1: 3411E219A294C2E893F50762EADF2FE044A0766A | sha256: 431C36DB423DB73F5E174D0D40264B59F8C4CED5A880FF54CC852C59D30C2272 | sha512: 3286C775A10334C4219548D210D8299C14DD65EC423BA295DCC185936E2BAD6DC74EE31CF6891A9C8CD5065F14523647B3066A3BDF03D445AB922BBDFAA4C26D
binaries\NewRelicAgent_x86_7.0.2.0.msi
md5: 8DB856A9191EB3EA1B199889790F1439 | sha1: F360805ED221947E973442D4B171DA0429D0365A | sha256: A441AB262D86B9E5AD87C9062E46E1B62C5F839FE563C0D9F952F7750FB7318B | sha512: 35F5BA916C33D44231FE4EA7C40921575AB048C956DD685E9ADB0F6303E8DDC92757B1D6AB27E88865F4D6B539ABD1495AE67A956E126A3985F7B34AE524C241
License.txt
----------------------------------------------------------------

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.
tools\chocolateyInstall.ps1
$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\NewRelicAgent_x86_7.0.2.0.msi";
  file64         = "$launch_path\..\binaries\NewRelicAgent_x64_7.0.2.0.msi";
  checksum       = 'A441AB262D86B9E5AD87C9062E46E1B62C5F839FE563C0D9F952F7750FB7318B'
  checksumType   = 'sha256'
  checksum64     = '431C36DB423DB73F5E174D0D40264B59F8C4CED5A880FF54CC852C59D30C2272'
  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
$package = 'newrelic-dotnet' # arbitrary name for the package, used in messages
$ProductCode_x86 = '{9BB2ADB8-B8C7-40B4-8662-2AE3DC7B5FE7}'
$ProductCode_x64 = '{9291C7C7-4F54-4299-A4B7-EAD91ED75B06}'

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

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.

Version Downloads Last Updated Status
New Relic .NET Agent 8.20.262.0 3518 Thursday, October 17, 2019 Approved
New Relic .NET Agent 8.19.353.0 2916 Tuesday, October 1, 2019 Approved
New Relic .NET Agent 8.18.241.0 4414 Monday, August 26, 2019 Approved
New Relic .NET Agent 8.17.438.0 2229 Monday, July 22, 2019 Approved
New Relic .NET Agent 8.16.567.0 1902 Tuesday, June 11, 2019 Approved
New Relic .NET Agent 8.15.455.0 1477 Monday, April 22, 2019 Approved
New Relic .NET Agent 8.14.222.0 878 Tuesday, March 19, 2019 Approved
New Relic .NET Agent 8.13.798.0 1643 Tuesday, February 12, 2019 Approved
New Relic .NET Agent 8.12.216.0 681 Thursday, January 10, 2019 Approved

This package has no dependencies.

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