Hi and welcome,
First of all it would be very kind to format your text for better reading. Look at here: Create topics and master Markdown formatting
Now to your question: First step is to create “Event Plugin Command”. It is the same menue like you create a “Plugin Check Command”:
The fields are the same.
In your service (template) you have to choose the defined event command from the list from “event command” field