Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.4 not actually installing newrelic-sysmond #40

Open
bhechinger opened this issue Jun 19, 2015 · 7 comments
Open

4.0.4 not actually installing newrelic-sysmond #40

bhechinger opened this issue Jun 19, 2015 · 7 comments

Comments

@bhechinger
Copy link

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: ''

Is that not enough?

Because it's not actually installing the package

@fsalum
Copy link
Owner

fsalum commented Jun 19, 2015

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
Copy link
Owner

fsalum commented Jun 19, 2015

Also the Linux OS/version.

@MNiedzielski
Copy link

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}",
}

@bhechinger
Copy link
Author

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)

@seocam
Copy link

seocam commented Feb 15, 2016

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.

@YarNhoj
Copy link
Collaborator

YarNhoj commented Aug 11, 2016

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

@AndreCAndersen
Copy link

AndreCAndersen commented Dec 16, 2016

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", ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants