 In many instances, the "mashgiach" is a rabbi.This helps, since rabbinical students learn the laws of kosher as part of their syllabus.However, not every "mashgiach" is a rabbi, and not every rabbi is qualified to be a "mashgiach".