Not writing to Influx
Closed this issue · 6 comments
Hi,
I havean existing deployment of Grafana, Telegraf and Infux DB. I've added your script and run it and if I run it manually or use the telelgraf test command it returns metrics correctly to screen but it never inserts anything into Influx. - I don't see any new measurement in telegraf database in Influx. I also have no password set on Influx. I have other python scripts writing direct to InfluxDBClient -
The ucs_traffic_monitor_ucs_domains.log file looks fine - shows completion & Printing output in InfluxDB Line Protocol format / Printing output - DONE
Checking telegraf logs I jsut see
[inputs.exec] Error in plugin: exec: exit status 1 for command 'python3 /home/p21noc/scripts/ucs_traffic_monitor.py /home/p21noc/scripts/ucs_domains.txt influxdb-lp -vv': Traceback (most recent call last):...
Any advice appreciated
I forgot to mention:
Telegraf 1.16.3
InfluxDB shell version: 1.8.3
Ubuntu 18.04
Grafana 7.3
How long does it take for the manual completion of the script? It should complete within 50s by default. If that doesn't fix, I need to take a closer look. Please send me an email. GitHub user id is same as my cisco id. We can do webex.
It takes 10-15 seconds. Think it might be a permissions issue. I jsut sent you an email - let me know if you don't get it
Please look out for the permission issue. The UTM collector, prickle file, log file, etc. must be owned by the telegraf user. If you run it manually, please delete the log file and pickle file because they get created by your account. I have the detailed steps on my blog on since2k7.com
Did it work? I am closing this issue due to no activity. Please re-open it or raise a new issue if you still see the problem. Thanks!
Hi there! I couldn't get it working so I installed via your custom OVA and works perfectly.
Its brilliant! You are a legend!