fluxplug: instruct curl to return the HTTP code

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
This commit is contained in:
2019-03-17 13:36:45 +02:00
parent ea14803794
commit 236f25659c
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
myhost=$(/bin/hostname -f)
CURL="/usr/bin/curl -is -u user:password -XPOST 'http://influxdb.url/write?db=jpi' --data-binary "
CURL="/usr/bin/curl -is -o /dev/null -w \"%{http_code}\\\n\" -u user:password -XPOST 'http://influxdb.url/write?db=jpi' --data-binary "
AWK="/usr/bin/awk"
WC="/usr/bin/wc"
DF="/bin/df -t ext4 "