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

Collectd::Plugin::Aggregation::Aggregator fails on 5.2 #596

Closed
gytisgreitai opened this issue Dec 10, 2016 · 3 comments
Closed

Collectd::Plugin::Aggregation::Aggregator fails on 5.2 #596

gytisgreitai opened this issue Dec 10, 2016 · 3 comments

Comments

@gytisgreitai
Copy link
Contributor

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.7
  • Ruby: 1.9.3p484
  • Distribution: Ubuntu 14.04
  • Module version: 5.2

How to reproduce (e.g Puppet code you use)

class { 'collectd::plugin::aggregation':
     aggregators => {
       cpu => {
         plugin           => 'cpu',
         type             => 'cpu',
         groupby          => ["Host", "TypeInstance"],
         calculateaverage => true,
       },
     }
   }

What are you seeing

Error: Invalid parameter type on Collectd::Plugin::Aggregation::Aggregator[cpu] at xxx/client.pp:45 on node xx.xx.com
Error: Invalid parameter type on Collectd::Plugin::Aggregation::Aggregator[cpu] at xxx/client.pp:45 on node xx.xx.com

What behaviour did you expect instead

It works fine on 5.1 and generates correct config

@juniorsysadmin
Copy link
Member

@gytisgreitai Are you certain that you didn't do a typo and use aggregator rather than aggregators because that is what the error message seems to be indicating.

@juniorsysadmin juniorsysadmin added the needs-feedback Further information is requested label Dec 20, 2016
@gytisgreitai
Copy link
Contributor Author

@juniorsysadmin yes. I have the exact same code as shown here, that works on 5.1, and fails on 5.2.
Since opening this issue I've upgraded to puppet 4.8.1 so the error has more details:

Error: Evaluation Error: Error while evaluating a Resource Statement, Collectd::Plugin::Aggregation::Aggregator[cpu]: has no parameter named 'type' at xxx/collectd/manifests/plugin/aggregation.pp:19 on node yyyyy

And this leads us to this commit c0faa91

So probably the README.md must be changed to use agg_type instead of type

Created Pull request for that #606

@juniorsysadmin juniorsysadmin removed the needs-feedback Further information is requested label Oct 29, 2017
@juniorsysadmin
Copy link
Member

Docs fixed by #606

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

2 participants