CMK Raw Edition - how to configure event handler

Hi Folks ,

I’ve just configured this one :

i added the following lines to the

extra_service_conf[“event_handler_enabled”]=[(“1”, [“srv1”],[“Check_MK”])]

extra_service_conf[“event_handler”]=[(“restart_Check_MK”, [“srv1”],[“Check_MK”])]

then i defined a command in /omd/sites//etc/nagios/conf.d/commands.cfg:

define command{
command_name restart_Check_MK
command_line /opt/scripts/

I stopped the agent and after notin happen.

the script restart via ssh locally on check_mk server

im using raw edition 1.6

What’s wrong ?!?!?