Skip to content

CollectD error when sending telemetry "SyntaxError: Unexpected token N" #492

@AlexFlat

Description

@AlexFlat

Hi,

I am trying to integrate CollectD (Ubuntu) with Application Insights.
When trying to previously use Log4J I was getting a similar error and downgraded to version 1.0.9 as per the article
https://stackoverflow.com/questions/46919565/unable-to-push-logs-to-application-insights-using-logback-appenders

Here is the errors I am getting for collectd after starting the service.

collectd.service - Statistics collection and monitoring daemon
   Loaded: loaded (/lib/systemd/system/collectd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-12-10 20:10:31 EST; 2min 10s ago
     Docs: man:collectd(1)
           man:collectd.conf(5)
           https://collectd.org
  Process: 42840 ExecStartPre=/usr/sbin/collectd -t (code=exited, status=0/SUCCESS)
 Main PID: 42841 (collectd)
    Tasks: 42 (limit: 19660)
   CGroup: /system.slice/collectd.service
          42841 /usr/sbin/collectd

Dec 10 21:12:03 osboxes collectd[42841]: AI: ERROR 10-12-2017 21:12, 36: Failed to send, Bad request  : {"itemsReceived":1,"itemsAccepted":0,"errors":[{"index":0,"statusCode":400,"message":"SyntaxError: Unexpected token N"}]}
Dec 10 21:12:03 osboxes collectd[42841]: AI: ERROR 10-12-2017 21:12, 26: Failed to send, Bad request  : {"itemsReceived":1,"itemsAccepted":0,"errors":[{"index":0,"statusCode":400,"message":"SyntaxError: Unexpected token N"}]}
Dec 10 21:12:03 osboxes collectd[42841]: AI: ERROR 10-12-2017 21:12, 31: Failed to send, Bad request  : {"itemsReceived":1,"itemsAccepted":0,"errors":[{"index":0,"statusCode":400,"message":"SyntaxError: Unexpected token N"}]}

However I am unable to locate the 1.0.9 version of CollectD.

Do you have a published link for this library?
Is this a known issue for collectd that will be fixed?

Thanks in advance,

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions