fluxplug: instruct curl to return the HTTP code
Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user