Open martin8310 opened 5 days ago
I wouldn't say it was missing... but I did an example to the README for you.
Please let me know if you have any issues.
Thank you ;-)
Sorry but it dosn't work :-(
192.168.1.1, lost, 0
Traceback (most recent call last):
File "ping-influx.py", line 32, in <module>
hit(target)
File "ping-influx.py", line 25, in hit
influx(addr, 'lost', res[0])
File "ping-influx.py", line 20, in influx
client.write_points(data)
File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 490, in write_points
tags=tags, protocol=protocol)
File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 551, in _write_points
protocol=protocol
File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 327, in write
headers=headers
File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 267, in request
timeout=self._timeout
services:
ping-recorder:
image: thecase/ping-influx
container_name: ping-recorder
environment:
INFLUXHOST: "influx.local"
INFLUXPORT: 8086
INFLUXDB: "pings"
TARGETS: "192.168.1.1 8.8.8.8"
restart: always
Is the address/FQDN of your influx server correct?
docker compose file missing in the examples. do you have an example for us?
regards Martin