diff --git a/agent.sh b/agent.sh index 25ca130..522b5d4 100644 --- a/agent.sh +++ b/agent.sh @@ -4,7 +4,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # Agent version -version="1.2.0" +version="1.2.1" # API Token if [ -f /etc/netweak/token.conf ] @@ -224,9 +224,9 @@ data_post="token=${auth[0]}&data=$(base "$version") $(base "$uptime") $(base "$s # API request with automatic termination if [ -n "$(command -v timeout)" ] 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/report" + 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/report" 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/report" + wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" "https://api.netweak.com/agent/report" wget_pid=$! wget_counter=0 wget_timeout=30 diff --git a/heartbeat.sh b/heartbeat.sh index 86c87cb..10107de 100644 --- a/heartbeat.sh +++ b/heartbeat.sh @@ -18,9 +18,9 @@ data_post="token=${auth[0]}" # API request with automatic termination if [ -n "$(command -v timeout)" ] 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 - 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_counter=0 wget_timeout=30