ICMP ping from Java is not a straightforward thing to do.

There are lots of programs that are designed to track uptime of hosts like cacti, nagios and open nms that might be more suited than mango for tracking uptime.

Or as you say get a slightly less barebones switch which has SNMP.