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

aggregation plugin error: The plugin either only expects "simple" configuration statements or wasn't loaded using `LoadPlugin'. #680

Closed
prosegay opened this issue Jun 10, 2017 · 1 comment

Comments

@prosegay
Copy link

prosegay commented Jun 10, 2017

Affected Puppet, Ruby, OS and module versions/distributions

Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
root@v0:/etc/puppet# puppet --version
3.7.5
root@v0:/etc/puppet# ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
root@v0:/etc/puppet# puppet module list
/etc/puppet/modules
├── aco-oracle_java (v2.4.1)
├── bind (???)
├── camptocamp-augeas (v1.0.3)
├── ceritsc-tmpreaper (v0.9.2)
├── dhoppe-postfix (v0.0.9)
├── dhoppe-puppet (v0.0.5)
├── domcleal-augeasproviders (v1.1.0)
├── garethr-docker (v5.3.0)
├── maestrodev-ant (v1.0.5)
├── maestrodev-wget (v1.5.6)
├── nanliu-archive (v0.3.0)
├── nanliu-staging (v1.0.3)
├── pdxcat-nrpe (v2.0.0)
├── puppet-collectd (v5.1.0)
├── puppetlabs-apt (v1.8.0)
├── puppetlabs-concat (v1.2.4)
├── puppetlabs-pe_gem (v0.1.1)
├── puppetlabs-postgresql (v4.8.0)
├── puppetlabs-stdlib (v4.17.0)
├── rtyler-groovy (v1.0.3)
├── stahnma-epel (v1.0.2)
└── thias-libvirt (v1.0.0)

  • Puppet:
  • Ruby:
  • Distribution:
  • Module version:

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

class { '::collectd':
  purge           => true,
  recurse         => true,
  purge_config    => true,
  minimum_version => '5.4',
}
collectd::plugin::network::server{'localhost':
  port => 25826,
}
collectd::plugin::aggregation::aggregator {
  cpu:
    plugin           => 'cpu',
    agg_type         => 'cpu',
    groupby          => ["Host", "TypeInstance",],
    calculateaverage => true,
    calculatesum => true,
}

What are you seeing

There is a `Aggregation' block within the configuration for the aggregation plugin. The plugin either only expects "simple" configuration statements or wasn't loaded using 'LoadPlugin'. Please check your configuration.

root@v0:/etc/puppet# cat /etc/collectd/conf.d/10-aggregation.conf
# Generated by Puppet
<LoadPlugin aggregation>
  Globals false
</LoadPlugin>
root@v0:/etc/puppet# cat /etc/collectd/conf.d/aggregator-cpu.conf
<Plugin "aggregation">
  <Aggregation>
    Plugin "cpu"
    Type "Rack Mount Chassis"


    GroupBy "Host"
    GroupBy "TypeInstance"

    CalculateSum true
    CalculateAverage true
  </Aggregation>
</Plugin>

What behaviour did you expect instead

no error

Output log

Any additional information you'd like to impart

@prosegay
Copy link
Author

I believe the cause of this was old version of collectd installed on the host. It was a U12.04 platform and that installed collectd 4x even tho a 5x version was asked for? Idk, but I'm not going to use the puppet module, I'm just going to push a config file and manage the packages separately. Most of these modules are just too much trouble to get working for the mixed environments that I have, that has been my experience, although I have tried many of them. I don't have the time to put into it to debug the modules or work around their limitations. Usually what I need to do is pretty straightforward such as push a known configuration.

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

1 participant