Hi Anu,
If I understand correctly you want to recieve an Alert if the SQL Profiler Trace stops, am I right?
You are mentioninjg in your post:
Event ID 19031 is generated if SQL profiler is stopped
My suggestion here would be to configure a simple Alert Generating Event based Rule, which triggers an Alert whenever Event with the ID 19031 from the respective source is logged on the monitored SQL node:
SCOM Event Based Monitoring – Part 2 – Rules
https://anaops.com/2018/04/29/scom-event-based-monitoring-part-2-rules/
i don't see any reasons to make it more complex with event correlation and a monitor. If you want to know when the trace is stopped, just capture the related event. Please share if I got this wrong, will try to help yyou solve this one.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Stoyan Chalakov