rbicelli/pfsense-zabbix-template

HTTP Speedtest request error

salatielcf opened this issue · 0 comments

When trying to run the speedtest sometimes it gives the HTTP error, after changing the command the connections are via HTTPS.

Cannot retrieve speedtest configuration
ERROR: HTTP Error 403: Forbidden

Fixed with changing the command run in php

function pfz_speedtest_exec
$st_command = "/usr/local/bin/speedtest --source $ipaddr --json > $filetemp";

Added --secure

$st_command = "/usr/local/bin/speedtest --secure --source $ipaddr --json > $filetemp";

No more failures