-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix token auth and hardcode org=influxdata request parameter #60
base: develop
Are you sure you want to change the base?
Conversation
I was just logging in to suggest fixing the cut command instead of hardcoding == to the token and you got there first! |
How does influx v1 handle thr additional url parameter? |
I'm not sure about that, but I think they should be ignored. |
I've tried this... But it did not work. The config file uses a space in between key and value so that does not seem to be the issue. |
66ac5c7
to
b4c7f7e
Compare
@@ -2018,7 +2018,7 @@ SendToInfluxDB(){ | |||
INFLUX_AUTHHEADER="$(Conf_Parameters check NOTIFICATIONS_INFLUXDB_APITOKEN)" | |||
fi | |||
|
|||
/usr/sbin/curl -fsL --retry 3 --connect-timeout 15 --output /dev/null -XPOST "$NOTIFICATIONS_INFLUXDB_PROTO://$NOTIFICATIONS_INFLUXDB_HOST:$NOTIFICATIONS_INFLUXDB_PORT/api/v2/write?bucket=$NOTIFICATIONS_INFLUXDB_DB&precision=s" \ | |||
/usr/sbin/curl -fsL --retry 3 --connect-timeout 15 --output /dev/null -XPOST "$NOTIFICATIONS_INFLUXDB_PROTO://$NOTIFICATIONS_INFLUXDB_HOST:$NOTIFICATIONS_INFLUXDB_PORT/api/v2/write?bucket=$NOTIFICATIONS_INFLUXDB_DB&org=influxdata&precision=s" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to add this as an additional UI option for configuration.
I've encountered two issues when running the script form the dev branch.