<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_outlet(self, helper):
 """ check the status of the specified outlet """

        try:
            outlet_name, outlet_state = self.sess.get_oids(self.oids['oid_outlet_name'], self.oids['oid_outlet_state'])
        except health_monitoring_plugins.SnmpException as e:
            helper.exit(summary=str(e), exit_code=unknown, perfdata='')
        outlet_real_state = states[int(outlet_state)]

        # here we check if the outlet is powered on
        if outlet_real_state != "on":
            helper.status(critical)

        # print the status
        helper.add_summary("Outlet %s - '%s' is: %s" % (self.number, outlet_name, outlet_real_state.upper()))