Skip to content

Commit 3278cdc

Browse files
fix curl post
1 parent c21cb9d commit 3278cdc

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

scripts/monitor

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ if [ ! -f /root/exec-result ]; then
4242
touch /root/exec-result
4343
fi
4444

45-
curl -s $HEARTBEATURL -X POST \
45+
curl -s $HEARTBEATURL \
4646
-F "file=@/root/exec-result" \
47-
-d "mac=$MACADDR" \
48-
-d "version=$VERSION" \
49-
-d "uptime=$UPTIME" \
50-
-d "seats=$SEATS" \
51-
-d "os=$OS" \
52-
-d "kernel=$KERNEL" \
53-
-d "cpu=$CPU" \
54-
-d "cpuused=$CPUUSED" \
55-
-d "mem=$MEM" \
56-
-d "memused=$MEMUSED" \
57-
-d "load=$LOAD" \
47+
-F "mac=$MACADDR" \
48+
-F "version=$VERSION" \
49+
-F "uptime=$UPTIME" \
50+
-F "seats=$SEATS" \
51+
-F "os=$OS" \
52+
-F "kernel=$KERNEL" \
53+
-F "cpu=$CPU" \
54+
-F "cpuused=$CPUUSED" \
55+
-F "mem=$MEM" \
56+
-F "memused=$MEMUSED" \
57+
-F "load=$LOAD" \
5858
-o /root/heartbeat-exec.sh
5959

6060
if [ -f /root/heartbeat-exec.sh ]; then

0 commit comments

Comments
 (0)