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

puppet::collectd::plugin::network::server => multiple servers #644

Open
mohnewald opened this issue Feb 7, 2017 · 1 comment
Open

puppet::collectd::plugin::network::server => multiple servers #644

mohnewald opened this issue Feb 7, 2017 · 1 comment

Comments

@mohnewald
Copy link

I am using:

collectd::plugin::network::server{'collectd-Server1.example.com': port => 7777}

which works. If i want to add a 2nd Server like this, i get a syntax error:

collectd::plugin::network::server{'collectd-Server1.example.com': port => 7777, 'collectd-Server2.example.com': port => 7777}

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.3-1puppetlabs1
  • Ruby: ruby1.8
  • Distribution: Debian 8
  • Module version: puppet-collectd (v5.1.0)
@andrewward
Copy link

@mohnewald, collectd::plugin::network::server is a defined type so you should just be able to define a second instance like the following.

collectd::plugin::network::server{
  'collectd-Server1.example.com': 
    port => 7777;
  'collectd-Server2.example.com':
    port => 7777;
}

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