Two school districts are investigating online threats and canceling classes on Tuesday as a precaution.