Joshua Powers

Results 758 comments of Joshua Powers

> It would have been convenient (for me) for the old doc to link to the newer doc, but that github repository is archived: FYI I had to unarchive the...

@sdalu, Can you run `go test -v -run Test_Process_CreateTime ./process/...` @shirou, In the original issue, I had the reporter use [the following code](https://github.com/influxdata/telegraf/issues/13933#issuecomment-1723997524). You can see his response for the...

@shirou, Well gopsutil should not panic :) In the original issue, I had sdalu, first get a process using the scripts own PID: > myself, err := process.NewProcess(int32(currentPid)) This returned...

Well that is not what I was expecting. Just to confirm, this was run on your FreeBSD system that was showing the issue with Telegraf?

@sdalu I have put up https://github.com/influxdata/telegraf/pull/15355 which will hopefully print out what the result of `getKProc` call and the pid we are looking at. In 20-30mins can you download another...

Thanks for trying that out! > getting process with pid: 40544 > k: (*process.KinfoProc)(nil) @shirou any reason why the kinfoproc would be nil? Does that mean gopsutil failed to parse...

@sdalu, As before, can you grab the telegraf artifacts in few minutes from this post at: https://github.com/influxdata/telegraf/pull/15397 @shirou - thanks for looking into this!

That's the [same line](https://github.com/shirou/gopsutil/blob/edb58e3dd10d1fd5d6cc5bf03b1d136d0629b55b/process/process_freebsd.go#L122), you originally saw: > return int64(k.Start.Sec)*1000 + int64(k.Start.Usec)/1000, nil Ah, @shirou, the [nil check](https://github.com/shirou/gopsutil/blob/edb58e3dd10d1fd5d6cc5bf03b1d136d0629b55b/process/process_freebsd.go#L342) is checking if the memory address is nil, so that will never...

@shirou - can that be changed? Otherwise you would need to check if any of the pointer fields are nil?

> @srebhan Is this PR okay in the current form? Tests need to pass. Current failure: ``` [ERROR] gofmt has found errors in the following files: plugins/inputs/aliyuncms/aliyuncms.go plugins/inputs/aliyuncms/aliyuncms_test.go plugins/inputs/webhooks/rollbar/rollbar_webhooks_events.go plugins/outputs/sumologic/sumologic.go...