changed states to be OK, WARNING, CRITICAL instead of 0, 1, 2