Added more logging when a monitor script cannot be executed.

This commit is contained in:
Markus Makela
2015-05-20 16:16:49 +03:00
parent b815a79628
commit 7dbc021149
6 changed files with 67 additions and 7 deletions

View File

@ -303,7 +303,11 @@ void monitor_launch_script(MONITOR* mon,MONITOR_SERVERS* ptr, char* script)
ptr->server->unique_name);
mon_append_node_names(mon->databases,argstr,PATH_MAX + MON_ARG_MAX + 1);
cmd = externcmd_allocate(argstr);
if((cmd = externcmd_allocate(argstr)) == NULL)
{
skygw_log_write(LE,"Failed to execute script: %s",script);
return;
}
if(externcmd_execute(cmd))
{