i have increased the timeout up to 300s and the error still persists. Here is the output of the nri-flex debug command:
C:\Program Files\New Relic\newrelic-infra\newrelic-integrations>nri-flex -verbose -pretty -config_file “C:\Program Files\New Relic\newrelic-infra\integrations.d\flex-TS-config.yml”
time=“2022-01-06T08:43:56-06:00” level=debug msg=“Function.isAvailable: enter”
time=“2022-01-06T08:43:56-06:00” level=debug msg=“Function.isAvailable: exit status: false”
time=“2022-01-06T08:43:56-06:00” level=info msg=com.newrelic.nri-flex GOARCH=amd64 GOOS=windows version=1.4.3
time=“2022-01-06T08:43:56-06:00” level=debug msg=“config: git sync configuration not set”
time=“2022-01-06T08:43:56-06:00” level=warning msg=“config: testing agent config, agent features will not be available”
time=“2022-01-06T08:43:56-06:00” level=debug msg=“config: running async” name=TS
time=“2022-01-06T08:43:56-06:00” level=debug msg=“config: processing apis” apis=1 name=TS
time=“2022-01-06T08:43:56-06:00” level=debug msg=“fetch: collect data” name=TS
time=“2022-01-06T08:43:56-06:00” level=debug msg=“commands: executing” count=1 name=TS
time=“2022-01-06T08:43:56-06:00” level=debug msg=“command: failed” context_err= err=“exit status 1” exec=“query user” suggestion=“if you are handling this error case, ignore”
time=“2022-01-06T08:43:56-06:00” level=debug msg=“processor-data: running data handler” name=TS
time=“2022-01-06T08:43:56-06:00” level=debug msg=“config: finished variable processing apis” apis=1 name=TS
time=“2022-01-06T08:43:56-06:00” level=info msg=“flex: completed processing configs” configs=1
{
“name”: “com.newrelic.nri-flex”,
“protocol_version”: “3”,
“integration_version”: “1.4.3”,
“data”: [
{
“metrics”: [
{
“context_error”: “”,
“error”: “exit status 1”,
“error_exec”: “query user”,
“error_msg”: " USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME\r\n\u003ekfiedler rdp-tcp#74 34 Active . 1/6/2022 7:54 AM\r\n",
“event_type”: “TS_Sessions”,
“integration_name”: “com.newrelic.nri-flex”,
“integration_version”: “1.4.3”
},
{
“event_type”: “flexStatusSample”,
“flex.Hostname”: “TS-PPE”,
“flex.IntegrationVersion”: “1.4.3”,
“flex.counter.ConfigsProcessed”: 1,
“flex.counter.EventCount”: 1,
“flex.counter.EventDropCount”: 0,
“flex.counter.TS_Sessions”: 1,
“flex.time.elaspedMs”: 58,
“flex.time.endMs”: 1641480236958,
“flex.time.startMs”: 1641480236900
}
],
“inventory”: {},
“events”: []
}
]
}