Another try

Another try to store errortime. 
Take index of hostname element in array[0] and write to 
array[1][index] => holds the error time and
array[0][ïndex] => holds Hostname