CNGS beam monitor with the LVD detector