Some time ago I had to check the status of a Linux process using a User Defined Metric running in EM11g. Recently I had to do the same using EM12c, which was easily taken care of by creating a Metric Extension using the same perl script I used for the UDM.
I thought it might be of any interest to you…