oetiker / SmokePing

The Active Monitoring System
http://www.smokeping.org
GNU General Public License v2.0
1.35k stars 182 forks source link

influxdb Error inserting measurement into influxdb: Error executing write: malformed JSON string, neither tag #363

Closed leyifoxit closed 1 year ago

leyifoxit commented 1 year ago
image

Targets config

image

Database config

image

how to solve this error ? @mad-ady

leyifoxit commented 1 year ago
image

Targets config

image
mad-ady commented 1 year ago

I'd say the first error may indicate the fact that smokeping can't connect to your influxdb server (10.122.126.43).

Check what traffic you have between smokeping and your influxdb server with a packet capture tool like tcpdump. Is it able to establish a connection? Does the database exist in influxdb?

leyifoxit commented 1 year ago
image image image image
leyifoxit commented 1 year ago
image
leyifoxit commented 1 year ago

@mad-ady What is the second error and how should I fix it?

mad-ady commented 1 year ago

If you're running my docker build, I think it's slightly different than the main Smokeping build in terms of parsing influx_* config items. I'd try removing influx_service_type from your config file. Not sure I'll have time to review my old code, to see what the accepted values were.

On Fri, Mar 17, 2023, 10:33 leyifoxit @.***> wrote:

@mad-ady https://github.com/mad-ady What is the second error and how should I fix it?

— Reply to this email directly, view it on GitHub https://github.com/oetiker/SmokePing/issues/363#issuecomment-1473393874, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAO6KWPN7Q5DT2RENGRIMDW4QOVBANCNFSM6AAAAAAV57JRCI . You are receiving this because you were mentioned.Message ID: @.***>

leyifoxit commented 1 year ago

@mad-ady Thank you, I am waiting for your message

github-actions[bot] commented 1 year ago

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.