-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
telegraf not running on windows #6987
Comments
Please, try configure agent section:
then, start telegraf from command line: |
I believe this may be the same issue as #6954, is this occurring after you updated Telegraf or are you just getting started? |
@bdogan, did you use agent version below 1.13? I just checked Telegraf 1.13.1 on Server 2016 and did not receive any problems with the service. Please, show all tabs in service properties, especially "Path to executable" parameter. |
@M0rdecay, i have tried the following versions; All tabs; Path to Executable; |
@M0rdecay Here is the trace file telegraf_trace.zip (PML format). Note: I have filtered only process name is not "w3wp.exe" |
Thanks for the trace. This is strange, but no errors in the operation of telegraf or services.exe were noticed in it. It can be seen that the agent is launched on the initiative services.exe and works for a minute. Perhaps this is still connected with the resource \NAS1\IPC$, since an attempt to access it is the last meaningful recorded action of the agent. If you can deal with your problem, please describe the solution. |
Looks like we search for |
I've found a similar issue has occurred on one of my servers (Win 2012 R2), where the service failed to respond / start following each of several OS reboots (leading to no metrics for 36 hours). However once OS has been up a while, service starts without issue. The server should not be heavily loaded during / after boot, and telegraf is light so there should be no reason for it to be unresponsive. Unfortunately in trying to debug this it seems the log handling on Windows is probably not as intended and you can't run debug to Eventlog (in addition to stderr always reporting eventlog is not valid option, due to missing case in switch at logger.go line 106). Also it seems to only output debug for the output, not the inputs or main code - so it's really not very helpful for diags. I'm happy to do some digging on my server if it helps? |
Hi, This is an older bug and we have not had any additional reports, plus we have made some more enhancements to how the service runs on Windows. I am going to go ahead and close this issue. If you are still running into issues please feel free to file a new ticket with logs and configs! Thanks! |
hi team, I am getting error in windows server during telegraf service start.
WIN version and error snap are attached

The text was updated successfully, but these errors were encountered: