In recent versions NetXMS is performing ICMP ping to node's primary IP address automatically and collects the statistics visible in Object Details. You can also create DCIs to store the history of these values. https://www.netxms.org/documentation/adminguide/icmp-ping.html
If you are trying to achieve something different, please describe in details.
If you are trying to achieve something different, please describe in details.