puppet-newrelic icon indicating copy to clipboard operation
puppet-newrelic copied to clipboard

4.0.4 not actually installing newrelic-sysmond

Open bhechinger opened this issue 10 years ago • 7 comments

From what I can see of newrelic::server::linux it should be installing the newrelic-sysmond package.

I'm trying to feed data from hiera, so I have:

newrelic::server::linux::newrelic_license_key: '<Lmy license key>'

Is that not enough?

Because it's not actually installing the package

bhechinger avatar Jun 19 '15 18:06 bhechinger

Could you paste your manifest declaring the newrelic module/parameters and a fake hiera data so I can reproduce here with the same config.

fsalum avatar Jun 19 '15 18:06 fsalum

Also the Linux OS/version.

fsalum avatar Jun 19 '15 18:06 fsalum

We are seeing the same problems on the first run with 4.1.1 and puppetlabs-apt 2.1.0 on Ubuntu 14.04. On the second puppet apply it corrects.


file { "/etc/newrelic.ini":
    ensure  => file,
    owner   => "root",
    group   => "root",
    mode    => 644,
    content => template("mynode/newrelic/newrelic.ini.erb"),
    notify  => Service["newrelic-sysmond"],
}
class { 'newrelic::server::linux':
    newrelic_license_key => hiera('newrelic::license_key'),
    newrelic_nrsysmond_labels => "Region:${ec2_availability_zone};Stack:${ec2_stack_name};Environment:${ec2_stackenvironment};Tier:${ec2_tiertype}",
}

MNiedzielski avatar Jun 19 '15 18:06 MNiedzielski

I'm leveraging automatic parameters, so I'm just including your module via console classification (PE3.8) and setting this in hiera:

newrelic::server::linux::newrelic_license_key: 'my key here'

Ubuntu 14.04.02 (on both nodes and puppetmaster)

bhechinger avatar Jun 19 '15 18:06 bhechinger

I'm not sure if that's the same issue but I'm having troubles on the first run as well:

Notice: /Stage[main]/Newrelic::Params/Apt::Source[newrelic]/Apt::Setting[list-newrelic]/File[/etc/apt/sources.list.d/newrelic.list]/ensure: defined content as '{md5}dce2a5607c7980c71f6492b7ba83390f'
Info: /Stage[main]/Newrelic::Params/Apt::Source[newrelic]/Apt::Setting[list-newrelic]/File[/etc/apt/sources.list.d/newrelic.list]: Scheduling refresh of Class[Apt::Update]
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install newrelic-sysmond' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package newrelic-sysmond
Error: /Stage[main]/Newrelic::Server::Linux/Package[newrelic-sysmond]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install newrelic-sysmond' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package newrelic-sysmond

That's how I'm using it:

  class {'newrelic::server::linux':
    newrelic_license_key => '...',
  }

On second run it works fine.

seocam avatar Feb 15 '16 17:02 seocam

Is this still an issue using the latest version of the module?

YarNhoj avatar Aug 11 '16 17:08 YarNhoj

I just now did the same thing, and I got the same error with puppet version 4.8.1. It stops at E: Unable to locate package newrelic-sysmond, however, it is resolved when puppet is run again. Other info:

Linux 4.2.0-42-generic x86_64 (i.e., Ubuntu 14.04.5 LTS) New Relic agent 2.3.0.132 metadata.json: {"name": "fsalum-newrelic", "version": "4.1.1", ...

andre-c-andersen avatar Dec 16 '16 00:12 andre-c-andersen