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

multiple plugins in telegraf_plugins_extra are duplicated #22

Closed
haraldkoch opened this issue Feb 4, 2017 · 5 comments
Closed

multiple plugins in telegraf_plugins_extra are duplicated #22

haraldkoch opened this issue Feb 4, 2017 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@haraldkoch
Copy link

When I define multiple plugins in telegraf_plugins_extra, the role creates a separate file for each plugin in /etc/telegraf/telegraf.d. However, each file lists all of the extra plugins.

The issue is that the task "Copy telegraf extra plugins" iterates over telegraf_plugins_extra, but the template file telegraf-extra-plugin.conf also iterates over telegraf_plugins_extra, causing duplicates.

I'm not quite expert enough in ansible to know how to fix this yet, but I'll try to find some time to play with it...

@dj-wasabi dj-wasabi added the bug Something isn't working label Feb 5, 2017
@dj-wasabi
Copy link
Owner

Hi @haraldkoch

Please let me know if you need help. Otherwise I'll take a look at it and fix it.

@haraldkoch
Copy link
Author

Okay, the obvious fix (remove the iteration inside the file) works - until you define multiple plugins with the same type (e.g. two SNMP plugins talking to different servers). In that case, the second one doesn't get instantiated in the final output.

Back to square one :)

@dj-wasabi
Copy link
Owner

@haraldkoch

Can you confirm that with the merge of a PR in the last few days that this issue is solved now?

@dj-wasabi dj-wasabi added this to the 0.7.0 milestone Feb 22, 2017
@haraldkoch
Copy link
Author

@dj-wasabi Worked perfectly on my test server, yes.

@dj-wasabi
Copy link
Owner

Thanks! Will close this issue and create a release in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants