code: def check_outlet(self, helper):
          
          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()))
docs: check the status of the specified outlet