Seems like a pretty straightforward port, nothing looks wrong.

What's the error value that you're seeing from the host_statistics function? 
Can you 
    
    
    echo error
    
    Run

and see/show us what's printed?

Reply via email to