The Gateway Agent also has a ping-based EDD driver - this could be one way for you to independently validate the device(asset) is still online.
What exactly is detection? Offline equals no snmp and no ping? Or are there other considerations? You could use a tool like netcat or nmap to probe the SNMP port.