mirror of
https://github.com/netweak/agent.git
synced 2025-01-20 22:42:36 -05:00
Update heartbeat.sh
This commit is contained in:
parent
2a582a23f3
commit
d48c69efd2
1 changed files with 2 additions and 2 deletions
|
@ -18,9 +18,9 @@ data_post="token=${auth[0]}"
|
||||||
# API request with automatic termination
|
# API request with automatic termination
|
||||||
if [ -n "$(command -v timeout)" ]
|
if [ -n "$(command -v timeout)" ]
|
||||||
then
|
then
|
||||||
timeout -s SIGKILL 30 wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://api.netweak.com/agent/heartbeat"
|
timeout -s SIGKILL 30 wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" "https://api.netweak.com/agent/heartbeat"
|
||||||
else
|
else
|
||||||
wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://api.netweak.com/agent/heartbeat"
|
wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" "https://api.netweak.com/agent/heartbeat"
|
||||||
wget_pid=$!
|
wget_pid=$!
|
||||||
wget_counter=0
|
wget_counter=0
|
||||||
wget_timeout=30
|
wget_timeout=30
|
||||||
|
|
Loading…
Add table
Reference in a new issue