dj-wasabi / ansible-telegraf

Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
MIT License
134 stars 116 forks source link

Error 1067 the process terminated unexpectedly, when starting telegraf service #114

Open dennopro opened 4 years ago

dennopro commented 4 years ago

Describe the bug

I defined the the output as outputs.prometheus_client and added the listener port; however the telegraf service doesnt start; error 1067 the process terminated unexpectedly. Installation method/version

Ansible Version 2.8

<!--- Paste output from "ansible --version" -->

fatal: [vm-xxxxx]: FAILED! => {"can_pause_and_continue": false, "changed": false, "depended_by": [], "dependencies": [], "description": "Collects data using a series of plugins and publishes it toanother series of plugins.", "desktop_interact": false, "display_name": "Telegraf Data Collector Service", "exists": true, "msg": "Failed to start service 'Telegraf Data Collector Service (telegraf)'.", "name": "telegraf", "path": "C:\Telegraf\telegraf\telegraf.exe --config C:\Telegraf\telegraf\telegraf.conf --config-directory C:\Telegraf\telegraf_agent.d --service-name telegraf", "start_mode": "auto", "state": "stopped", "username": "LocalSystem"}

Targetted hosts Concerns the following OS(es):

Expected behavior

telegraf service to start after installing telegraf Additional context

output changed from influx db to

[[outputs.prometheus_client]] listen = ":9273"

also windows event viewer shows: