Don't reuse $t, even if perl scoping rules allow it.

Reusing $t to iterate over the ping results is just confusing,
especially since one line later we assign to the other $t.
Use a new locally-scoped $result variable instead.
Improved logging from SNMP errors.