If there is an error, in the ping or status test function, the values of CONFIG.host.pingresponse and CONFIG.host.statusCode are not overwritten, falsely telling that the hosts and the website is up.
This is a serious bug.
Make a local variable and pass it to the functions, instead of using the same global array.
This way we can avoid false up results.