mtype = mon_type.lower()
if mtype in ('http', 'https'):
   hm_obj[mtype]['url'] = cmd
   hm_obj[mtype]['expect_code'] = expect_code