code: def check_udp(helper, host, port, session):
      
      open_ports = walk_data(session, '.1.3.6.1.2.1.7.5.1.2', helper)[0] # the udpLocaLPort from UDP-MIB.mib (deprecated)
      
      # here we show all open UDP ports
      if scan:
          print "All open UDP ports at host " + host
          for port in open_ports:
              print "UDP: \t" + port
          quit()
      
      if port in open_ports:        
          udp_status = "OPEN"
      else:
          udp_status = "CLOSED"
          helper.status(critical)
      return ("Current status for UDP port " + port + " is: " + udp_status)
docs: the check logic for UDP ports