Browse Source

fluxplug: instruct curl to return the HTTP code

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
master
Nagy Károly Gábriel 6 years ago
parent
commit
236f25659c
Signed by: karasz
GPG Key ID: C6BA1070A8CBDA0C
  1. 2
      master

2
master

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
myhost=$(/bin/hostname -f) 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" AWK="/usr/bin/awk"
WC="/usr/bin/wc" WC="/usr/bin/wc"
DF="/bin/df -t ext4 " DF="/bin/df -t ext4 "

Loading…
Cancel
Save