Event handler definition

Just create a new file, e.g. eventhandler.cfg, and enter the definition there.

Yes, you need an extra_service_conf. See also here (in german): https://www.geekbundle.org/selbstheilung-mit-check_mk-event-handler/