A Nagios service check that returns exit code 1 reports a CRITICAL state, and exit code 2 reports a WARNING state.