alarms.save_alarm_conf_db(alm.attr_name,alm.name,"","",alm.enabled,//add new alarm on log before subscribe event
alm.formula,alm.on_delay,alm.off_delay,alm.grp2str(),alm.lev,alm.msg,alm.cmd_name_a,alm.cmd_name_n,alm.silent_time);//but if it fails remove it from table
alm.formula,alm.on_delay,alm.off_delay,alm.grp2str(),alm.lev,alm.msg,alm.url,alm.cmd_name_a,alm.cmd_name_n,alm.silent_time);//but if it fails remove it from table